edit_bin.html
mirhasan
html
a month ago
1.2 kB
1
Indexable
<!DOCTYPE html> <html> <head> <title>Edit Bin</title> </head> <body> <h1>Edit Bin</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] == bin_data[1] %}selected{% endif %}>{{ region[1] }}</option> {% endfor %} </select> <br> <label for="status">Status:</label> <select id="status" name="status"> <option value="Empty" {% if bin_data[2] == 'Empty' %}selected{% endif %}>Empty</option> <option value="Full" {% if bin_data[2] == 'Full' %}selected{% endif %}>Full</option> <option value="Partially Full" {% if bin_data[2] == 'Partially Full' %}selected{% endif %}>Partially Full</option> </select> <br> <label for="last_collected">Last Collected:</label> <input type="datetime-local" id="last_collected" name="last_collected" value="{{ bin_data[3] }}"> <br> <button type="submit">Update Bin</button> </form> </body> </html>
Editor is loading...
Leave a Comment