summaryrefslogtreecommitdiff
path: root/templates/edit_fieldsets.html
blob: 9aaf0000122daca8edda0d07c69814e704e9f8cc (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
{% extends "tree.html" %}
{% block widgets %}{% endblock %}
{% block content %}
    {% block beforeform %}
    {% endblock %}
        <h2>{{formtitle}}</h2>
		<form method="POST" id="wizard" class="bbq infopanel">
		    {% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
			{% for fieldset in form.fieldsets %}
			  <fieldset id="{{fieldset.name}}" class="fieldset {{ fieldset.classes }}">
				  {% if fieldset.legend %}
				  <legend>{{ fieldset.legend }}</legend>
				  {% endif %}
				  {% if fieldset.description %}
				  <p class="description">{{ fieldset.description }}</p>
				  {% endif %}
				  <ul class="inputs">
				  {% for field in fieldset %}
				    {% if field.is_hidden %}
				      {{ field }}
				    {% else %}
				      <li class="inputs {% if field.field.required %}required{% endif %}" {{ field.row_attrs }}>
				        {{ field.errors }}
				        <label for="id_{{ field.html_name }}" class="fieldlabel">{{ field.label }}
                        {% if field.field.required %}<b>*</b>{% endif %}</label>
				        <div class="fieldinput">{{ field }}</div>
				      </li>
				    {% endif %}
				  {% endfor %}
				  </ul>
			  </fieldset>
			{% endfor %}
		   <ul class="ilist" style="padding-bottom: 30px; padding-top: 5px; padding-left: 0px;">
		      <li class="button left"><input type="reset" value="Back"/></li>
		      <li class="button left"><input type="submit" value="Finish"/></li>
		      <li class="button right"><input type="button" onClick="document.location='{% if name %}{{name.url}}{%else%}{{profile.home.url}}{%endif%}'" value="Cancel"/></li
		   </ul>
		</form>
{% endblock %}