File tree 1 file changed +2
-2
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 115
115
{%- endblock choice_widget_expanded %}
116
116
117
117
{% 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 ( ' ' ) ) -%}
119
119
{% if ' checkbox-inline' in parent_label_class %}
120
120
{{- form_label(form , null , { widget : parent () }) -}}
121
121
{% else -%}
126
126
{%- endblock checkbox_widget %}
127
127
128
128
{% 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 ( ' ' ) ) -%}
130
130
{% if ' radio-inline' in parent_label_class %}
131
131
{{- form_label(form , null , { widget : parent () }) -}}
132
132
{% else -%}
You can’t perform that action at this time.
0 commit comments