Display in red non fields errors in map_form.html
This commit is contained in:
parent
3e43ee54c8
commit
a08d1901cd
1 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue