edit_station.html
<!DOCTYPE html> <html> <head> <title>Edit Station</title> </head> <body> <h1>Edit Station</h1> <form method="post"> <label for="region_id">Region:</label> <select id="region_id" name="region_id"> {% for region in regions %} <option value="{{ region[0] }}" {% if region[0] == station_data[1] %}selected{% endif %}>{{ region[1] }}</option> {% endfor %} </select> <br> <label for="location">Location:</label> <input type="text" id="location" name="location" value="{{ station_data[2] }}" required> <br> <button type="submit">Update Station</button> </form> </body> </html>
Leave a Comment