Skip to content

Commit 3289de4

Browse files
authored
fix bootstrap_3_layout ChoiceType's expanded label_html
1 parent d234ca3 commit 3289de4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,22 @@
101101
{%- endif -%}
102102
{%- endif -%}
103103
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
104-
{{- widget|raw }} {{ label is not same as(false) ? (translation_domain is same as(false) ? (label_html is same as(false) ? label : label|raw) : (label_html is same as(false) ? label|trans(label_translation_parameters, translation_domain) : label|trans(label_translation_parameters, translation_domain)|raw)) -}}
104+
{{- widget|raw }}
105+
{%- if label is not same as(false) -%}
106+
{%- if translation_domain is same as(false) -%}
107+
{%- if label_html is same as(false) -%}
108+
{{ label -}}
109+
{%- else -%}
110+
{{ label|raw -}}
111+
{%- endif -%}
112+
{%- else -%}
113+
{%- if label_html is same as(false) -%}
114+
{{ label|trans(label_translation_parameters, translation_domain) -}}
115+
{%- else -%}
116+
{{ label|trans(label_translation_parameters, translation_domain)|raw -}}
117+
{%- endif -%}
118+
{%- endif -%}
119+
{%- endif -%}
105120
</label>
106121
{%- endif -%}
107122
{%- endblock checkbox_radio_label %}

0 commit comments

Comments
 (0)