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 | cac54f6ba177842cf8b3a176c52dcb883f723592 (patch) | |
| tree | decceb2607b188d8fe0980676bd3a544aa52548f /ishtar_common/templates/blocks | |
| parent | 6e4bdcdcd106941b527f807b439cfaf93cdc9297 (diff) | |
| parent | 7ad2fce4c7158c46629fd1c1c4c85c739a392289 (diff) | |
| download | Ishtar-cac54f6ba177842cf8b3a176c52dcb883f723592.tar.bz2 Ishtar-cac54f6ba177842cf8b3a176c52dcb883f723592.zip | |
Merge branch 'stable'
Diffstat (limited to 'ishtar_common/templates/blocks')
| -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 #} |
