Merge pull request #10 from mpapierski/master
merge 'Non field errors are shown as error alerts.'
This commit is contained in:
commit
c1d6120917
@ -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