summaryrefslogtreecommitdiff
path: root/ishtar/templates/grid_form.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-13 15:01:55 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-13 15:01:55 +0200
commite29d35c908113bed814fc061e9cd1aa235188ec6 (patch)
treed86b4ee3f87443c14e269964a16d7a29269a5ba5 /ishtar/templates/grid_form.html
parent664c3ec45d2b79895c9830676e9de899b4f4c825 (diff)
downloadIshtar-e29d35c908113bed814fc061e9cd1aa235188ec6.tar.bz2
Ishtar-e29d35c908113bed814fc061e9cd1aa235188ec6.zip
Provide help for form fields (closes #481)
Diffstat (limited to 'ishtar/templates/grid_form.html')
-rw-r--r--ishtar/templates/grid_form.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ishtar/templates/grid_form.html b/ishtar/templates/grid_form.html
new file mode 100644
index 000000000..8c02197b4
--- /dev/null
+++ b/ishtar/templates/grid_form.html
@@ -0,0 +1,10 @@
+{% load i18n %}
+ {% for field in form %}
+ <tr{% if field.field.required %} class='required'{% endif %}>
+ <th>{{ field.label_tag }}</th>
+ <td> {{ field.errors }}{{field|safe}}</td>{% if field.help_text %}
+ <td><a href="#{{field.name}}" class="help_display" title="{% trans "Help"%}">?</a></td>
+ </tr>
+ <tr class="help_text" id="{{field.name}}_help">
+ <td colspan="3"><div>{{field.help_text}}</div></td>
+ {%endif%}</tr>{% endfor %}