X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/137adc006b783dc9444d051625ab4d59456840cd..4b2c05eedf0c6b3d213ce0b760d641c345e3c9b3:/src/wolnelektury/templates/forms/p.html diff --git a/src/wolnelektury/templates/forms/p.html b/src/wolnelektury/templates/forms/p.html new file mode 100644 index 000000000..be238bb80 --- /dev/null +++ b/src/wolnelektury/templates/forms/p.html @@ -0,0 +1,20 @@ +{{ errors }} +{% if errors and not fields %} +

{% for field in hidden_fields %}{{ field }}{% endfor %}

+{% endif %} +{% for field, errors in fields %} + {{ errors }} + + {% if field.label %}{{ field.label_tag }}{% endif %} + {% if field.help_text %} +
{{ field.help_text|safe }} + {% endif %} + {{ field }} + {% if forloop.last %} + {% for field in hidden_fields %}{{ field }}{% endfor %} + {% endif %} +

+{% endfor %} +{% if not fields and not errors %} + {% for field in hidden_fields %}{{ field }}{% endfor %} +{% endif %}