From 7bc61c00286672b6d39f6e45ed948b2c858cc2de Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 28 Oct 2022 10:57:08 +0200 Subject: [PATCH 1/1] Layout: forms. --- .../templates/experiments/main_switch.html | 6 ++- src/wolnelektury/static/2022/more.scss | 29 ++++++++++++++ src/wolnelektury/templates/2022/base.html | 1 + .../templates/forms/form_detail.html | 7 +++- .../templates/forms/includes/built_form.html | 39 ++++++++++++------- 5 files changed, 64 insertions(+), 18 deletions(-) diff --git a/src/experiments/templates/experiments/main_switch.html b/src/experiments/templates/experiments/main_switch.html index 2f866bce5..c02ca488a 100644 --- a/src/experiments/templates/experiments/main_switch.html +++ b/src/experiments/templates/experiments/main_switch.html @@ -9,8 +9,10 @@ {% for exp in request.EXPERIMENTS.values %} -
- {{ exp.name }} +
+ + {{ exp.name }} + + {% endif %} + {% else %} - {{ form_for_form.as_table }} - {% if form_for_form.fields %} - - {% endif %} + {{ form_for_form.as_table }} + {% if form_for_form.fields %} + + {% endif %}
- + {% endif %} -
- {{ form.intro|second_part:"---"|safe }} -
+
+ {{ form.intro|second_part:"---"|safe }} +
+ -- 2.20.1