summaryrefslogtreecommitdiff
path: root/templates/edit_fieldsets.html
blob: b86f3d972791b39a91c7fff06897d365dea9a833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "tree.html" %}
{% block widgets %}{% endblock %}
{% block content %}
    {% block beforeform %}
    {% endblock %}
    <div class="infopanel">
		<form method="POST" id="wizard" class="bbq" style="padding: 5px;">
		    <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 {% if field.field.required %}required{% endif %}" {{ field.row_attrs }}>
				        {{ field.errors }}
				        <label for="id_{{ field.html_name }}">{{ field.label }}
                        {% if field.field.required %}<b>*</b>{% endif %}</label>
				        {{ field }}
				      </li>
				    {% endif %}
				  {% endfor %}
				  </ul>
			  </fieldset>
			{% endfor %}
			<div class="ilist button" style="padding-bottom: 10px;">
			   <ul>
			      <li><input type="reset" value="Back"/></li>
			      <li><input type="submit" value="Finish"/></li>
			      <li><input type="button" style="float: right;" onClick="document.location='{{name.url}}'" value="Cancel"/></li>
			   </ul>
		    </div>
		</form>
	</div>
{% endblock %}