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-Tag: 0.1.1~32 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/0f1e9d0ce90560631d35dd27aa3db2f26f6964c7?ds=sidebyside;hp=ac34727967d88619e2722ae9e4617ffdc9801150 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 -%}