X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1e07f2852393111843ebfe9c6f534b6002a7c2a8..4b2c05eedf0c6b3d213ce0b760d641c345e3c9b3:/src/wolnelektury/templates/forms/includes/built_form.html diff --git a/src/wolnelektury/templates/forms/includes/built_form.html b/src/wolnelektury/templates/forms/includes/built_form.html index 46d24ccdd..cef827f50 100644 --- a/src/wolnelektury/templates/forms/includes/built_form.html +++ b/src/wolnelektury/templates/forms/includes/built_form.html @@ -1,25 +1,39 @@ {% load honeypot %} {% load more %} +{% load i18n %} +

{{ form.title }}

-
- {{ form.intro|first_part:"---"|safe }} -
+{{ form_for_form.media }} +
+ {% csrf_token %} + {% render_honeypot_field %} + +
+ {{ form.intro|first_part:"---"|safe }} +
- {{ form_for_form.media }} - - {% csrf_token %} - {% render_honeypot_field %} + {% if form_published %} + {% if request.EXPERIMENTS.layout.value %} + {{ form_for_form.as_p }} + {% if form_for_form.fields %} + + {% 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 %} + {% else %} +

FORMULARZ ZAMKNIĘTY

+ {% endif %} -
- {{ form.intro|second_part:"---"|safe }} -
+
+ {{ form.intro|second_part:"---"|safe }} +
+