]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/form_div_layout.html.twig
Force string cast of simple xml elements
[airbundle] / Resources / views / form / form_div_layout.html.twig
index 9270f0e08e6e1d2894d30b4c9a233e55d8a8725e..61c8a03593e14762c9146b2644621fce9f6624c7 100644 (file)
 {%- endblock choice_widget -%}
 
 {%- block choice_widget_expanded -%}
-    <div {{ block('widget_container_attributes') }}>
     {%- for child in form %}
-        {{- form_widget(child) -}}
-        {{- form_label(child, null, {translation_domain: choice_translation_domain}) -}}
+               <div class="row" {{ block('widget_container_attributes') }}>
+                       {{- form_label(child, null, {translation_domain: choice_translation_domain}) -}}
+                       <div>
+                               {{- form_widget(child) -}}
+                       </div>
+               </div>
     {% endfor -%}
-    </div>
 {%- endblock choice_widget_expanded -%}
 
 {%- block choice_widget_collapsed -%}
 {%- endblock form_row -%}
 
 {%- block button_row -%}
-    <div>
+    <div class="row">
         {{- form_widget(form) -}}
     </div>
 {%- endblock button_row -%}