edit_truck.html

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