From 0ec96e8c93667bde2dfccfd98c6f74cabfeacfb4 Mon Sep 17 00:00:00 2001 From: PitouGames Date: Mon, 29 Jul 2019 23:16:50 +0200 Subject: [PATCH] Implement #290 Change form error style --- config/packages/twig.yaml | 1 + templates/form/form_errors.html.twig | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 templates/form/form_errors.html.twig 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..16ba85020 --- /dev/null +++ b/templates/form/form_errors.html.twig @@ -0,0 +1,9 @@ +{%- block form_errors -%} + {%- if errors|length > 0 -%} + + {%- endif -%} +{%- endblock form_errors -%}