summaryrefslogtreecommitdiff
path: root/ishtar/templates/window.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/templates/window.html')
-rw-r--r--ishtar/templates/window.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/ishtar/templates/window.html b/ishtar/templates/window.html
index 3c52a3d90..a92f859ab 100644
--- a/ishtar/templates/window.html
+++ b/ishtar/templates/window.html
@@ -27,12 +27,17 @@ save_and_close_window("{{parent_name}}", "{{parent_pk}}", "{{new_item_label}}",
{% endif %}
<div id="window_content">
<h3>{{title}}</h3>
- <form action="." method="post">{% csrf_token %}
+ <form action="." method="post" class='form'>{% csrf_token %}
<table>
- {{form.as_table}}
+ {% for field in form %}
+ <tr{% if field.field.required %} class='required'{% endif %}>
+ <th><label for="{{ field.label }}">{{ field.label_tag }}</th>
+ <td> {{ field.errors }}{{field|safe}}</td>
+ </tr>{% endfor %}
<tr><td colspan='2' class='submit_button'><input type="submit" id="submit_new_item" value="{% trans "Add" %}"/></td></tr>
</table>
</form>
+ </div>
</div>
</body>