aboutsummaryrefslogtreecommitdiff
path: root/templates/beerpage.jinja2
diff options
context:
space:
mode:
authorBen Cohen <ben@kensho.com>2019-07-28 14:19:58 -0400
committerBen Cohen <ben@kensho.com>2019-07-28 14:19:58 -0400
commit8844f1aa63cf3f356140e88a9b579cff95bf7816 (patch)
tree4742d7728e81a6305a77e9ad90354445880a830c /templates/beerpage.jinja2
parent818706d7426c2a792b009f8d06d5d7d361712046 (diff)
parent6c031a4c3da2de85c5dd2f0350affbcfa83af22a (diff)
Merge branch 'master' of gitlab.com:uncel_dolan/similar-beer
Diffstat (limited to 'templates/beerpage.jinja2')
-rw-r--r--templates/beerpage.jinja224
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/beerpage.jinja2 b/templates/beerpage.jinja2
index 159802b..a143358 100644
--- a/templates/beerpage.jinja2
+++ b/templates/beerpage.jinja2
@@ -18,23 +18,23 @@
</tr>
</table>
</div>
- <form action="" method="post">
+ <form action="" method="post" class="form-inline">
<p>
Show me beers which are
- <select name="direction">
- <option value="3">Much more</option>
- <option value="2">More</option>
- <option value="1">Little more</option>
- <option value="-1">Little less</option>
- <option value="-2">Less</option>
- <option value="-3">Much less</option>
+ <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' %}selected{% endif %} value="1">Little more</option>
+ <option {% if direction == '-1' %}selected{% endif %} value="-1">Little less</option>
+ <option {% if direction == '-2' %}selected{% endif %} value="-2">Less</option>
+ <option {% if direction == '-3' %}selected{% endif %} value="-3">Much less</option>
</select>
- <select name="attr">
- {% for attr in attrs %}
- <option value="{{ attr }}"> {{ attr }}</option>
+ <select name="attr" class="form-control">
+ {% for a in attrs %}
+ <option {% if a == attr %}selected{% endif %} value="{{ a }}">{{ a }}</option>
{% endfor %}
</select>
- <input type="submit" value="Go">
+ <input type="submit" value="Go" class="btn btn-outline-primary">
</p>
</form>
{% if direction and attr %}