List all Form Errors

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{% if form.errors %}
<div id="form-error">
	<p>The operation could not be performed because one or more error(s) occurred.<br />Please resubmit the form after making the following changes:</p>
	<ul>
	{% for field in form %}
	<li>{{ field.errors|striptags }}</li>
	{% endfor %}
	</ul>
</div>
{% endif %}

Comments

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.