From: Raphaƫl Gertz Date: Wed, 11 Dec 2019 04:30:58 +0000 (+0100) Subject: Add form global errors in a header block X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/a2fe226a18cbc0532f2db322b51e0531b753798e?ds=sidebyside;hp=434496435610caa3e1f9db4354d8c90b7cf0275f Add form global errors in a header block --- diff --git a/Resources/views/form/form_div_layout.html.twig b/Resources/views/form/form_div_layout.html.twig index 7f73c51..dfc79b3 100644 --- a/Resources/views/form/form_div_layout.html.twig +++ b/Resources/views/form/form_div_layout.html.twig @@ -337,6 +337,13 @@ {%- if form_method != method -%} {%- endif -%} + {%- if errors|length > 0 -%} +
+
+ {{- form_errors(form) -}} +
+
+ {%- endif -%} {%- endblock form_start -%} {%- block form_end -%}