summaryrefslogtreecommitdiff
path: root/src/templates/edit.html
blob: f896a52cd14efc7e143dbe24b75c658677e3cbb0 (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
{% extends "base.html" %}
{% block content %}
    {% block beforeform %}
    {% endblock %}
	<form method="POST">
		<div class="ui-widget-content ui-corner-all infopanel">
		    <h1>{{formtitle}}</h1>
			<table class="formtable">
		      {% for field in form %}
		        <tr style="padding-top: 10px;">
		          <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 %}
			      </td>
			      <td>
			          <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='/'" value="Cancel"/>
	    </div>
	</form>
{% endblock %}