summaryrefslogtreecommitdiff
path: root/templates/edit.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-12-03 23:20:31 +0100
committerLeif Johansson <leifj@sunet.se>2010-12-03 23:20:31 +0100
commitfc10f1fcfdff57a9250ef18daf761d8784be92da (patch)
tree8e355c1bf983c8257e283a02b69243a7fb0d8de0 /templates/edit.html
parentf554f07fe2f4a9d7591bc9ff89e49a160d4eca78 (diff)
coip wsgi driver
Diffstat (limited to 'templates/edit.html')
-rw-r--r--templates/edit.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/templates/edit.html b/templates/edit.html
index 7ada9a1..404751a 100644
--- a/templates/edit.html
+++ b/templates/edit.html
@@ -4,19 +4,23 @@
$('#id_description').wysiwyg();
{% endblock %}
{% block content %}
+ {% block beforeform %}
+ {% endblock %}
<form method="POST">
<div class="ui-widget-content ui-corner-all infopanel">
<h1>{{formtitle}}</h1>
- <table>
+ <table class="formtable">
{% for field in form %}
<tr>
- {% if field.errors %}
- <td colspan="2">{{ field.errors }}</td>
- {% endif %}
- </tr>
- <tr>
- <td>{{ field.label_tag }}</td>
- <td><div class="ui-widget">{{ field }}</div></td>
+ <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>