From d89dd18aa21a3054ed789d55201d68bf77b527a0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 Nov 2017 18:01:38 +0100 Subject: UI: adapt forms --- ishtar_common/templates/blocks/table_form_snippet.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ishtar_common/templates/blocks/table_form_snippet.html (limited to 'ishtar_common/templates/blocks/table_form_snippet.html') diff --git a/ishtar_common/templates/blocks/table_form_snippet.html b/ishtar_common/templates/blocks/table_form_snippet.html new file mode 100644 index 000000000..5ee88e25f --- /dev/null +++ b/ishtar_common/templates/blocks/table_form_snippet.html @@ -0,0 +1,16 @@ +{% load i18n %} + {% if form.non_field_errors %} + {{form.non_field_errors}} + {%endif%} + {% for field in form %}{% if not field.is_hidden %} + + {{ field.label_tag }} + {{ field.errors }}{{field|safe}}{% if field.help_text %} + ? + + +
{{field.help_text}}
+ {%endif%}{% else %}{{field}}{% if field.errors %} + + {{field.name}} - {{ field.errors }} + {% endif %}{{field|safe}}{% endif %}{% endfor %} -- cgit v1.2.3