Skip to content

Commit cb1a921

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy