Skip to content

Commit db6ac9b

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)