Skip to content
Snippets Groups Projects
Commit 0cdb6afb authored by Martin Burchell's avatar Martin Burchell
Browse files

Removed duplicated form errors from template

parent cbceb87c
No related branches found
No related tags found
1 merge request!37Items can be edited when form is submitted
......@@ -11,20 +11,6 @@
</h1>
<div class="col-lg-8 col-lg-offset-2">
<form id="single-item-form" role="form" method="POST">
{% if form.errors %}
{% for field in form %}
{% for error in field.errors %}
<div class="alert alert-error">
<strong>{{ error|escape }}</strong>
</div>
{% endfor %}
{% endfor %}
{% for error in form.non_field_errors %}
<div class="alert alert-error">
<strong>{{ error|escape }}</strong>
</div>
{% endfor %}
{% endif %}
{% csrf_token %}
{{ form.id }}
{{ form.next }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment