We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6843905 commit 9c76b29Copy full SHA for 9c76b29
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
@@ -122,7 +122,8 @@
122
<{{ element|default('div') }} class="custom-file">
123
{%- set type = type|default('file') -%}
124
{{- block('form_widget_simple') -}}
125
- <label for="{{ form.vars.id }}" class="custom-file-label">
+ {%- set label_attr = label_attr|merge({ class: (label_attr.class|default('') ~ ' custom-file-label')|trim }) -%}
126
+ <label for="{{ form.vars.id }}" {% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
127
{%- if attr.placeholder is defined -%}
128
{{- translation_domain is same as(false) ? attr.placeholder : attr.placeholder|trans({}, translation_domain) -}}
129
{%- endif -%}
0 commit comments