summaryrefslogtreecommitdiff
path: root/templates/edit.html
blob: f4fb52a11f756b34db45e799109d3e3efd8b1550 (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
{% extends "tree.html" %}
{% block widgets %}
    $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'});
    $('#id_description').wysiwyg();
{% endblock %}
{% block content %}
    {% block beforeform %}
    {% endblock %}
	<form method="POST">
		<div class="infopanel">
		    <h1>{{formtitle}}</h1>
			<table class="formtable">
		      {% for field in form %}
		        <tr>
		          <td>
			          {% if not field.is_hidden %}
			          <div class="ui-widget fieldlabel">{{ field.label_tag }}</div>
			          {% endif %}
			          {% if field.errors %}
			          <div class="ui-widget ui-state-error">{{ field.errors }}</div>
			          {% endif %}
			          <div class="ui-widget">{{ field }}</div>
		          </td>
		        </tr>
		      {% endfor %}
		    </table>
		</div>
		<br/>
		<div class="button">
		    <input type="submit" value="{{submitname}}" />
		    <input type="button" onClick="document.location='/name/id/{{name.id}}'" value="Cancel"/>
	    </div>
	</form>
{% endblock %}