2020-11-20 19:31:22 +01:00
|
|
|
{% if errors %}
|
|
|
|
{% if form.non_field_errors %}
|
|
|
|
<div class="message is-danger">
|
|
|
|
<div class="message-header">
|
|
|
|
<button class="delete" aria-label="delete"></button>
|
|
|
|
</div>
|
|
|
|
<div class="message-body">
|
|
|
|
{% for non_field_error in form.non_field_errors %}
|
|
|
|
{{ non_field_error }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for field in form.hidden_fields %}
|
|
|
|
{{ field }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for field in form.visible_fields %}
|
|
|
|
{% include 'elections/forms/field.html' %}
|
2020-12-18 17:38:44 +01:00
|
|
|
{% endfor %}
|