routes.html
<!DOCTYPE html> <html> <head> <title>Routes</title> </head> <body> <h1>Select a Truck</h1> <form action="/route" method="get"> <label for="truck_id">Select Truck:</label> <select id="truck_id" name="truck_id"> {% for truck in trucks %} <option value="{{ truck[0] }}">{{ truck[1] }}</option> {% endfor %} </select> <button type="submit">Calculate Route</button> </form> </body> </html>
Leave a Comment