diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-05-13 10:43:37 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-13 10:43:37 +0200 |
| commit | 7f1feb8890c9d8543f6ce468cd0462ee05e43113 (patch) | |
| tree | decceb2607b188d8fe0980676bd3a544aa52548f /ishtar_common/templates | |
| parent | b6e922a450d7780cefa196e5e6cc67c393bb338f (diff) | |
| parent | 48e99e5f0a72e54757258330dbac79cb2c990a6e (diff) | |
| download | Ishtar-7f1feb8890c9d8543f6ce468cd0462ee05e43113.tar.bz2 Ishtar-7f1feb8890c9d8543f6ce468cd0462ee05e43113.zip | |
Merge branch 'stable'
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/blocks/inline_formset.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/templates/blocks/inline_formset.html b/ishtar_common/templates/blocks/inline_formset.html index c33da051e..3affb7bf3 100644 --- a/ishtar_common/templates/blocks/inline_formset.html +++ b/ishtar_common/templates/blocks/inline_formset.html @@ -8,8 +8,9 @@ </tr> </thead>{% endif %}{% for frm in formset%} {% if forloop.first and not skip %}<tbody>{%endif%} - {% if not skip or not forloop.first %}<tr>{% endif %}{% for field in frm.visible_fields %} - <td> + {% if not skip or not forloop.first %} + {% if frm.errors %}<tr><td colspan='3'><ul>{% for error in frm.errors.values %}<li>{{error}}</li>{% endfor%}</ul></td></tr>{% endif %} + <tr>{% endif %}{% for field in frm.visible_fields %}<td> {% if field.errors %}<div class='errors'>{{ field.errors.as_ul }}</div>{% endif %} {{ field }} {# Include the hidden fields in the form #} |
