summaryrefslogtreecommitdiffstats
path: root/templates/w3/betterform.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/w3/betterform.html')
-rw-r--r--templates/w3/betterform.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/w3/betterform.html b/templates/w3/betterform.html
new file mode 100644
index 0000000..4516291
--- /dev/null
+++ b/templates/w3/betterform.html
@@ -0,0 +1,21 @@
+{% for fieldset in form.fieldsets %}
+ <fieldset class="fieldset-{{ forloop.counter }} {{ fieldset.classes }}">
+ {% if fieldset.legend %}
+ <legend>{{ fieldset.legend }}</legend>
+ {% endif %}
+
+ {% if fieldset.description %}
+ <p class="description">{{ fieldset.description }}</p>
+ {% endif %}
+
+ {% for field in fieldset %}
+ {% if field.is_hidden %}
+ {{ field }}
+ {% else %}
+ {% include "w3/field.html" %}
+ {% endif %}
+ {% endfor %}
+ {% if not forloop.last or not fieldset_open %}
+ </fieldset>
+ {% endif %}
+{% endfor %}