2020-11-20 19:31:22 +01:00
|
|
|
{% if errors %}
|
2020-12-19 15:28:32 +01:00
|
|
|
{% if form.non_field_errors %}
|
2021-12-20 20:11:27 +01:00
|
|
|
<div class="notification is-danger px-3 has-text-centered">
|
|
|
|
{% for non_field_error in form.non_field_errors %}
|
|
|
|
{{ non_field_error }}
|
|
|
|
{% if not forloop.last %}<hr>{% endif %}
|
|
|
|
{% endfor %}
|
2020-12-19 15:28:32 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-11-20 19:31:22 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for field in form.hidden_fields %}
|
2020-12-19 15:28:32 +01:00
|
|
|
{{ field }}
|
2020-11-20 19:31:22 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for field in form.visible_fields %}
|
2020-12-20 12:00:09 +01:00
|
|
|
{% include 'forms/field.html' %}
|
2020-12-18 17:38:44 +01:00
|
|
|
{% endfor %}
|