diff --git a/core/modules/system/templates/datetime-wrapper.html.twig b/core/modules/system/templates/datetime-wrapper.html.twig index 443b5b3..b10d306 100644 --- a/core/modules/system/templates/datetime-wrapper.html.twig +++ b/core/modules/system/templates/datetime-wrapper.html.twig @@ -24,6 +24,11 @@ {{ title }} {% endif %} {{ content }} +{% if errors %} +
+ {{ errors }} +
+{% endif %} {% if description %}
{{ description }}
{% endif %} diff --git a/core/modules/system/templates/fieldset.html.twig b/core/modules/system/templates/fieldset.html.twig index cf4e6fa..aace950 100644 --- a/core/modules/system/templates/fieldset.html.twig +++ b/core/modules/system/templates/fieldset.html.twig @@ -23,11 +23,6 @@ */ #} - {% if errors %} -
- {{ errors }} -
- {% endif %} {% set legend_span_classes = [ 'fieldset-legend', @@ -39,6 +34,11 @@ {{ legend.title }}
+ {% if errors %} +
+ {{ errors }} +
+ {% endif %} {% if prefix %} {{ prefix }} {% endif %} diff --git a/core/modules/system/templates/form-element.html.twig b/core/modules/system/templates/form-element.html.twig index f9148c8..501368b 100644 --- a/core/modules/system/templates/form-element.html.twig +++ b/core/modules/system/templates/form-element.html.twig @@ -63,11 +63,6 @@ ] %} - {% if errors %} -
- {{ errors }} -
- {% endif %} {% if label_display in ['before', 'invisible'] %} {{ label }} {% endif %} @@ -86,6 +81,11 @@ {% if label_display == 'after' %} {{ label }} {% endif %} + {% if errors %} +
+ {{ errors }} +
+ {% endif %} {% if description_display in ['after', 'invisible'] and description.content %} {{ description.content }}