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 bcbe99f commit f45db1fCopy full SHA for f45db1f
Resources/views/Form/bootstrap_4_layout.html.twig
@@ -119,7 +119,11 @@
119
<{{ element|default('div') }} class="custom-file">
120
{%- set type = type|default('file') -%}
121
{{- block('form_widget_simple') -}}
122
- <label for="{{ form.vars.id }}" class="custom-file-label">Choose File</label>
+ <label for="{{ form.vars.id }}" class="custom-file-label">
123
+ {%- if attr.placeholder is defined -%}
124
+ {{- translation_domain is same as(false) ? attr.placeholder : attr.placeholder|trans({}, translation_domain) -}}
125
+ {%- endif -%}
126
+ </label>
127
</{{ element|default('div') }}>
128
</div>
129
{% endblock %}
0 commit comments