]> Raphaël G. Git Repositories - airbundle/commitdiff
Fix expanded widget layout
authorRaphaël Gertz <git@rapsys.eu>
Wed, 21 Feb 2024 11:19:04 +0000 (12:19 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 21 Feb 2024 11:19:04 +0000 (12:19 +0100)
Resources/views/form/form_div_layout.html.twig

index 9270f0e08e6e1d2894d30b4c9a233e55d8a8725e..61c8a03593e14762c9146b2644621fce9f6624c7 100644 (file)
 {%- endblock choice_widget -%}
 
 {%- block choice_widget_expanded -%}
 {%- endblock choice_widget -%}
 
 {%- block choice_widget_expanded -%}
-    <div {{ block('widget_container_attributes') }}>
     {%- for child in form %}
     {%- 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 -%}
     {% endfor -%}
-    </div>
 {%- endblock choice_widget_expanded -%}
 
 {%- block choice_widget_collapsed -%}
 {%- endblock choice_widget_expanded -%}
 
 {%- block choice_widget_collapsed -%}
 {%- endblock form_row -%}
 
 {%- block button_row -%}
 {%- endblock form_row -%}
 
 {%- block button_row -%}
-    <div>
+    <div class="row">
         {{- form_widget(form) -}}
     </div>
 {%- endblock button_row -%}
         {{- form_widget(form) -}}
     </div>
 {%- endblock button_row -%}