The next day, Erik, Emily, and Simon got together to continue working on the Coffee Shop application.
“Are you ready to get serious?” Simon asked. “Today, we have to work on our actual web form. We tried a very simple menu yesterday. Now we have to add two more menus and the text field where the customer can enter their name.
“Let’s look at our code from yesterday. We already created one menu there—the code between the <select> and </select> tags. This menu already has two options: coffee and decaf.
Listing 11.1 First menu options in templates/forms.html
{% extends "base.html" %} {% block content %} <form action="/order" method="post"> <select name="drink"> <option value="">- Choose drink -</option> <option value="coffee">Coffee</option> #1 <option value="decaf">Decaf</option> #2 </select> <input type="submit" value="Submit"> </form> {% endblock %}