edit_collector.html

 avatar
mirhasan
html
a month ago
693 B
1
Indexable
<!DOCTYPE html>
<html>
<head>
    <title>Edit Collector</title>
</head>
<body>
    <h1>Edit Collector</h1>
    <form method="post">
        <label for="name">Name:</label>
        <input type="text" id="name" name="name" value="{{ collector_data[1] }}" required>
        <br>
        <label for="truck_id">Truck:</label>
        <select id="truck_id" name="truck_id">
            {% for truck in trucks %}
            <option value="{{ truck[0] }}" {% if truck[0] == collector_data[2] %}selected{% endif %}>{{ truck[1] }}</option>
            {% endfor %}
        </select>
        <br>
        <button type="submit">Update Collector</button>
    </form>
</body>
</html>
Leave a Comment