core: fix form not showing general errors

This commit is contained in:
Jens Langhammer
2020-06-01 19:07:10 +02:00
parent 82d12ecfdf
commit fe1ff7fc76
4 changed files with 24 additions and 8 deletions

View File

@ -2,6 +2,13 @@
{% load i18n %}
{% csrf_token %}
{% if form.non_field_errors %}
<div class="pf-c-form__group has-error">
<p class="pf-c-form__helper-text pf-m-error">
{{ form.non_field_errors }}
</p>
</div>
{% endif %}
{% for field in form %}
<div class="pf-c-form__group {% if field.errors %} has-error {% endif %}">
{% if field.field.widget|fieldtype == 'RadioSelect' %}