Display in red non fields errors in map_form.html

This commit is contained in:
Yohan Boniface 2012-12-16 17:48:57 +01:00
parent 3e43ee54c8
commit a08d1901cd

View file

@ -1,6 +1,8 @@
<h3>Create your map now!</h3>
<form action="{{ action_url }}" method="post" id="map_edit">
{{ form.non_field_errors }}
{% for error in form.non_field_errors %}
<small class="error">{{ error }}</small>
{% endfor %}
{% csrf_token %}
{{ form.name }}
{% for error in form.name.errors %}