8000 [TwigBridge] foundation 5 layout: use form_label_content block for ch… · symfony/symfony@e4eca7c · GitHub
[go: up one dir, main page]

Skip to content

Commit e4eca7c

Browse files
wetternestnicolas-grekas
authored andcommitted
[TwigBridge] foundation 5 layout: use form_label_content block for checkbox and radio labels
1 parent 9f692c6 commit e4eca7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@
269269
{% endif %}
270270
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
271271
{{ widget|raw }}
272-
{{ translation_domain is same as(false) ? label : label|trans(label_translation_parameters, translation_domain) }}
272+
{%- if label is not same as(false) -%}
273+
{{- block('form_label_content') -}}
274+
{%- endif -%}
273275
</label>
274276
{%- endblock checkbox_radio_label %}
275277

0 commit comments

Comments
 (0)
0