summaryrefslogtreecommitdiff
path: root/ishtar/templates/window.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-11 17:50:19 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-11 17:50:19 +0200
commitc87c5aa586ce3ebb2bd289313abade6e6317a463 (patch)
tree61223d0f02455513c772f3f7ac6a6d37b3a1db46 /ishtar/templates/window.html
parent40ca17f3015a646e775c46a050d3c05a5192e0be (diff)
downloadIshtar-c87c5aa586ce3ebb2bd289313abade6e6317a463.tar.bz2
Ishtar-c87c5aa586ce3ebb2bd289313abade6e6317a463.zip
Highlight mandatory fields (closes #435)
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>