aboutsummaryrefslogtreecommitdiff
path: root/templates/beerpage.jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/beerpage.jinja2')
-rw-r--r--templates/beerpage.jinja26
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/beerpage.jinja2 b/templates/beerpage.jinja2
index 9f6bf2b..44a5e82 100644
--- a/templates/beerpage.jinja2
+++ b/templates/beerpage.jinja2
@@ -76,9 +76,9 @@
<form action="" method="post" class="alert alert-secondary form-inline">
Show me beers which are
<select name="direction" class="form-control">
- <option {% if direction == '3' %}selected{% endif %} value="3">Much more</option>
- <option {% if direction == '2' %}selected{% endif %} value="2">More</option>
- <option {% if direction == '1' or not direction%}selected{% endif %} value="1">Slightly more</option>
+ {% for d in ['Much more', 'More', 'Slightly more'] %}
+ <option {% if direction == d %}selected{% endif %}>{{ d }}</option>
+ {% endfor %}
</select>
<select name="attr" class="form-control">
{% for a in attrs %}