blob: 2dd732ecd0ddfec4bd5970cca6f20325efa92c10 (
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
|
{% 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 %}
<div>
<form method="POST" class="bbq ui-helper-reset ui-widget ui-widget-content ui-corner-all 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 class="ilist" style="padding-bottom: 10px;">
<ul>
<li class="button left"><input type="submit" value="{{submitname}}" /></li>
{% if name %}
<li class="button right"><input type="button" onClick="document.location='{{name.url}}'" value="Done"/></li>
{% endif %}
</ul>
</div>
</form>
</div>
{% endblock %}
|