From 2bdad0ae7a3a6e4ec5116becd39910388b679ed2 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 4 Oct 2012 15:39:08 +0200 Subject: restructure --- templates/form.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/form.html (limited to 'templates/form.html') diff --git a/templates/form.html b/templates/form.html new file mode 100644 index 0000000..38dd0ea --- /dev/null +++ b/templates/form.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} +{% block content %} + + {% 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.description %} +

{{ fieldset.description }}

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