Skip to content

Commit 002b3f2

Browse files
bug symfony#24711 [TwigBridge] Re-add Bootstrap 3 Checkbox Layout (arkste)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBridge] Re-add Bootstrap 3 Checkbox Layout | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#24702 | License | MIT | Doc PR | Commits ------- 8ac8f9d [TwigBridge] Re-add Bootstrap 3 Checkbox Layout
2 parents b5023ec + 8ac8f9d commit 002b3f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,15 @@
123123
{%- endblock datetime_row %}
124124

125125
{% block checkbox_row -%}
126+
{% spaceless %}
126127
<div class="form-group{% if not valid %} has-error{% endif %}">
127-
{{- form_widget(form) -}}
128-
{{- form_errors(form) -}}
128+
<div class="{{ block('form_label_class') }}"></div>
129+
<div class="{{ block('form_group_class') }}">
130+
{{- form_widget(form) -}}
131+
{{- form_errors(form) -}}
132+
</div>
129133
</div>
134+
{% endspaceless %}
130135
{%- endblock checkbox_row %}
131136

132137
{% block radio_row -%}

0 commit comments

Comments
 (0)