Skip to content

Commit 850a4ea

Browse files
committed
Allowed raw label output for widget_checkbox_label = widget
1 parent fc29461 commit 850a4ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/views/Form/fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
{% endif %}
204204
<label{% for attrname, attrvalue in label_attr_copy %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
205205
{{ form_widget(child, {'horizontal_label_class': horizontal_label_class, 'horizontal_input_wrapper_class': horizontal_input_wrapper_class, 'attr': {'class': attr.widget_class|default('') }}) }}
206-
{% if widget_type == 'inline-btn' %}
206+
{% if widget_type == 'inline-btn' or widget_checkbox_label == 'widget'%}
207207
{{ child.vars.label|trans({}, translation_domain)|raw }}
208208
{% else %}
209209
{{ child.vars.label|trans({}, translation_domain) }}

0 commit comments

Comments
 (0)