diff --git a/djangocms_frontend/templates/djangocms_frontend/admin/includes/fieldset.html b/djangocms_frontend/templates/djangocms_frontend/admin/includes/fieldset.html index 5d3fc83c..1794cf47 100644 --- a/djangocms_frontend/templates/djangocms_frontend/admin/includes/fieldset.html +++ b/djangocms_frontend/templates/djangocms_frontend/admin/includes/fieldset.html @@ -4,11 +4,11 @@
{{ fieldset.description|safe }}
{% endif %} {% for line in fieldset %} -
- {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} +
+ {% if line.fields|length == 1 %}{{ line.errors }}{% endif %} {% for field in line %} - - {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} + + {% if not line.fields|length == 1 and not field.is_readonly %}{{ field.errors }}{% endif %} {% if field.is_checkbox %} {{ field.field }}{{ field.label_tag }} {% else %}