diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index e5325ff92..3e46e09e7 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -4,3 +4,4 @@ twig: strict_variables: '%kernel.debug%' globals: technical_to: '%env(TECHNICAL_TO)%' + form_themes: ['form/form_errors.html.twig'] diff --git a/templates/form/form_errors.html.twig b/templates/form/form_errors.html.twig new file mode 100644 index 000000000..a98e97d5b --- /dev/null +++ b/templates/form/form_errors.html.twig @@ -0,0 +1,9 @@ +{%- block form_errors -%} + {%- if errors|length > 0 -%} + + {%- endif -%} +{%- endblock form_errors -%}