Skip to content

Commit

Permalink
Update bootstrap_4_layout.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
CoalaJoe authored and fabpot committed Feb 4, 2020
1 parent 71de431 commit b1b724f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -123,7 +123,9 @@
{%- set type = type|default('file') -%}
{{- block('form_widget_simple') -}}
{%- set label_attr = label_attr|merge({ class: (label_attr.class|default('') ~ ' custom-file-label')|trim }) -%}
<label for="{{ form.vars.id }}" {% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
{%- set input_lang = 'en' -%}
{% if app is defined and app.request is defined %}{%- set input_lang = app.request.locale -%}{%- endif -%}
<label for="{{ form.vars.id }}" lang="{{ input_lang }}" {% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
{%- if attr.placeholder is defined and attr.placeholder is not none -%}
{{- translation_domain is same as(false) ? attr.placeholder : attr.placeholder|trans({}, translation_domain) -}}
{%- endif -%}
Expand Down

0 comments on commit b1b724f

Please sign in to comment.