Merge pull request #10 from mpapierski/master

merge 'Non field errors are shown as error alerts.'
This commit is contained in:
tzangms 2012-03-07 18:07:51 -08:00
commit c1d6120917

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 %} {% for field in form.hidden_fields %}
{{ field }} {{ field }}