From ade7bd4b74d9ae42c54648cc7390d8c067b5c5e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Oct 2012 17:49:57 +0200 Subject: Djangoization - Major refactoring (step 1) --- ishtar_common/templates/form_snippet.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ishtar_common/templates/form_snippet.html (limited to 'ishtar_common/templates/form_snippet.html') diff --git a/ishtar_common/templates/form_snippet.html b/ishtar_common/templates/form_snippet.html new file mode 100644 index 000000000..2f841e078 --- /dev/null +++ b/ishtar_common/templates/form_snippet.html @@ -0,0 +1,13 @@ +{% 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}}{% endif %}{% endfor %} -- cgit v1.2.3