Non field errors are shown as error alerts.
This commit is contained in:
parent
e29601e9a3
commit
e36bb00bb1
@ -1,4 +1,11 @@
|
||||
{{ form.non_field_errors }}
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-error">
|
||||
<a class="close" data-dismiss="alert">×</a></a>
|
||||
{% for non_field_error in form.non_field_errors %}
|
||||
{{ non_field_error }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for field in form.hidden_fields %}
|
||||
{{ field }}
|
||||
|
Loading…
Reference in New Issue
Block a user