From ec839d583fff6b279c7cdec2fdf87762f81f9aa5 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 2 Oct 2012 22:23:54 +0200 Subject: - bootstrap - cleanup - bugfixes --- src/templates/form.html | 62 +++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 30 deletions(-) (limited to 'src/templates/form.html') diff --git a/src/templates/form.html b/src/templates/form.html index 2e1e243..27feb42 100644 --- a/src/templates/form.html +++ b/src/templates/form.html @@ -1,38 +1,40 @@ {% extends "base.html" %} {% load prefix %} {% block content %} -

{% block formtitle %}{{formtitle}}{% endblock %}

+ {% block beforeform %}{% endblock %} -
+ + {% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %} +
+
    + {% for fieldset in form.fieldsets %} +
  1. {{ fieldset.legend }}
  2. + {% endfor %} +
{% for fieldset in form.fieldsets %} -
- {% if fieldset.legend %} - {{ fieldset.legend }} - {% endif %} - {% if fieldset.description %} -

{{ fieldset.description }}

- {% endif %} - -
- {% endfor %} -
    -
  • -
  • -
  • -
-
+
+ {% if fieldset.description %} +

{{ fieldset.description }}

+ {% endif %} + {% for field in fieldset %} + {% if field.is_hidden %} + {{ field }} + {% else %} + {{ field.errors }} + + {{ field }} + {% endif %} + {% endfor %} + + +
+ {% endfor %} +
+ {% endblock %} -- cgit v1.1