Non field errors are shown as error alerts.

This commit is contained in:
Michał Papierski 2012-03-08 02:48:45 +01:00
parent e29601e9a3
commit e36bb00bb1

View File

@ -1,4 +1,11 @@
{{ form.non_field_errors }}
{% if form.non_field_errors %}
<div class="alert alert-error">
<a class="close" data-dismiss="alert">&times;</a></a>
{% for non_field_error in form.non_field_errors %}
{{ non_field_error }}
{% endfor %}
</div>
{% endif %}
{% for field in form.hidden_fields %}
{{ field }}