From 63ce1c55519f94f1b176cfe58c6a0a3d599eedd5 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 15 Aug 2020 17:46:51 +0200 Subject: [PATCH] Show options for choices on location page --- app/static/css/main.css | 12 ++++++++++++ app/templates/location.html | 24 +++++++++++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/app/static/css/main.css b/app/static/css/main.css index 2fd83df..2689bd4 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -290,3 +290,15 @@ h1, h2, h3, h4, h5, h6{ #dish_choices.loading { opacity: 0.2; } + +.dish-choices summary { + font-style: italic; + cursor: pointer; +} +.dish-choices summary:before { + font-style: normal; + content: "⯈"; +} +.dish-choices[open] summary:before { + content: "⯆"; +} diff --git a/app/templates/location.html b/app/templates/location.html index 5080a30..f41c032 100644 --- a/app/templates/location.html +++ b/app/templates/location.html @@ -35,12 +35,30 @@ {{ dish.description or "" }} {% if dish.choices %} -
- Choices: +
+ {% set comma = joiner(",") %} {% for choice in dish.choices %}{{ comma() }} {{ choice[1].name }}{% endfor %} -
+ + + {% endif %} {{ dish.price_range()|price_range(true) }}