X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2d7cd9e42f2c3bc682ffb13ebc1644e102590102..9bc86f5a6542c5893ac94284da33162a7c7be2d6:/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 aaf4adeac..89bed2f7c 100644 --- a/src/wolnelektury/templates/forms/includes/built_form.html +++ b/src/wolnelektury/templates/forms/includes/built_form.html @@ -1,25 +1,30 @@ {% 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 %} - - {{ form_for_form.as_table }} - {% if form_for_form.fields %} - - {% endif %} -
-
+ {% if form_published %} + {{ form_for_form.as_p }} + {% if form_for_form.fields %} + + {% endif %} + {% else %} +

FORMULARZ ZAMKNIĘTY

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