diff options
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 #}  | 
