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 3a76820

Browse filesBrowse files
bug #45897 [TwigBridge] fix bootstrap_3_layout ChoiceType's expanded label_html (ytilotti)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge] fix bootstrap_3_layout ChoiceType's expanded label_html | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #41189 | License | MIT Commits ------- a846589 fix bootstrap_3_layout ChoiceType's expanded label_html
2 parents 45d0023 + a846589 commit 3a76820
Copy full SHA for 3a76820

File tree

Expand file treeCollapse file tree

1 file changed

+16
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-1
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
+16-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.