summaryrefslogtreecommitdiff
path: root/templates/edit_fieldsets.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-28 22:07:19 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-28 22:07:19 +0100
commit77ceee6e23f2a8daaf5e3247970953313aebcdd3 (patch)
tree90665ac16c025ea1bc7b478f2c84dcebf437f393 /templates/edit_fieldsets.html
parent36e045ed8aa871ef3bd0bf0e27896658d0a9ef89 (diff)
wizards
Diffstat (limited to 'templates/edit_fieldsets.html')
-rw-r--r--templates/edit_fieldsets.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/edit_fieldsets.html b/templates/edit_fieldsets.html
new file mode 100644
index 0000000..75885d7
--- /dev/null
+++ b/templates/edit_fieldsets.html
@@ -0,0 +1,41 @@
+{% extends "tree.html" %}
+{% block widgets %}{% endblock %}
+{% block content %}
+ {% block beforeform %}
+ {% endblock %}
+ <form method="POST" id="form">
+ <div class="infopanel">
+ <h1>{{formtitle}}</h1>
+ {% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
+ {% for fieldset in form.fieldsets %}
+ <fieldset id="{{fieldset.name}}" class="{{ fieldset.classes }}">
+ {% if fieldset.legend %}
+ <legend class="ui-state-highlight ui-corner-all">{{ fieldset.legend }}</legend>
+ {% endif %}
+ {% if fieldset.description %}
+ <p>{{ fieldset.description }}</p>
+ {% endif %}
+ <ul class="links">
+ {% for field in fieldset %}
+ {% if field.is_hidden %}
+ {{ field }}
+ {% else %}
+ <li class="links" {{ field.row_attrs }}>
+ {{ field.errors }}
+ {{ field.label_tag }}
+ {{ field }}
+ </li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </fieldset>
+ {% endfor %}
+ </div>
+ <br/>
+ <div class="button">
+ <input type="reset" value="Back"/>
+ <input type="submit" value="Finish" />
+ <input type="button" style="float: right;" onClick="document.location='{{name.url}}'" value="Cancel"/>
+ </div>
+ </form>
+{% endblock %} \ No newline at end of file