]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/form_div_layout.html.twig
Change layout to have only section with subtitle inside
[airbundle] / Resources / views / form / form_div_layout.html.twig
index 7f73c516294d084f4e281bd683894f7e40c49948..29ec4014e053b9add2d277cb9702cd10e352450d 100644 (file)
         <section>
             {{- form_widget(form) -}}
             {%- if errors|length > 0 -%}
-                <div class="error">
+                <div class="message error">
                     {{- form_errors(form) -}}
                 </div>
             {%- endif -%}
     {%- if form_method != method -%}
         <input type="hidden" name="_method" value="{{ method }}" />
     {%- endif -%}
+    {%- if errors|length > 0 -%}
+        <header>
+            <div class="message error">
+                {{- form_errors(form) -}}
+            </div>
+        </header>
+    {%- endif -%}
 {%- endblock form_start -%}
 
 {%- block form_end -%}