Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb1a921

Browse filesBrowse files
committed
Fixed the Bootstrap form theme for inlined checkbox/radio
1 parent 528572b commit cb1a921
Copy full SHA for cb1a921

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
{%- endblock choice_widget_expanded %}
116116

117117
{% block checkbox_widget -%}
118-
{% set parent_label_class = parent_label_class|default('') -%}
118+
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
119119
{% if 'checkbox-inline' in parent_label_class %}
120120
{{- form_label(form, null, { widget: parent() }) -}}
121121
{% else -%}
@@ -126,7 +126,7 @@
126126
{%- endblock checkbox_widget %}
127127

128128
{% block radio_widget -%}
129-
{%- set parent_label_class = parent_label_class|default('') -%}
129+
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
130130
{% if 'radio-inline' in parent_label_class %}
131131
{{- form_label(form, null, { widget: parent() }) -}}
132132
{% else -%}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.