summaryrefslogtreecommitdiff
path: root/templates/admin/includes/fieldset.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/includes/fieldset.html')
-rw-r--r--templates/admin/includes/fieldset.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/admin/includes/fieldset.html b/templates/admin/includes/fieldset.html
new file mode 100644
index 0000000..27e54c7
--- /dev/null
+++ b/templates/admin/includes/fieldset.html
@@ -0,0 +1,17 @@
+<fieldset class="module aligned {{ fieldset.classes }}">
+ {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
+ {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %}
+ {% for line in fieldset %}
+ <div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
+ {{ line.errors }}
+ {% for field in line %}
+ {% if field.is_checkbox %}
+ {{ field.field }}{{ field.label_tag }}
+ {% else %}
+ {{ field.label_tag }}{{ field.field }}
+ {% endif %}
+ {% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+</fieldset>