Skip to content

Commit 43971de

Browse files
-
1 parent 6f37f77 commit 43971de

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"private": true,
77
"devDependencies": {
88
"@symfony/webpack-encore": "^0.31.0",
9-
"core-js": "^3.6.5",
9+
"core-js": "^3.7.0",
1010
"node-sass": "^4.14.1",
1111
"regenerator-runtime": "^0.13.7",
1212
"sass-loader": "^9.0.1",
@@ -19,7 +19,7 @@
1919
"build": "encore production --progress"
2020
},
2121
"dependencies": {
22-
"bootstrap": "^5.0.0-alpha2",
22+
"bootstrap": "^5.0.0-alpha3",
2323
"file-saver": "^2.0.2",
2424
"jquery": "^3.5.1",
2525
"popper.js": "^1.16.1-lts",

templates/bootstrap_5_layout.html.twig

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,9 @@
128128
{%- endif -%}
129129
{%- endblock percent_widget %}
130130

131-
{% block file_widget -%}
132-
<{{ element|default('div') }} class="form-file">
133-
{%- set type = type|default('file') -%}
134-
{{- block('form_widget_simple') -}}
135-
{%- set label_attr = label_attr|merge({ class: (label_attr.class|default('') ~ ' form-file-label')|trim }) -%}
136-
{%- set input_lang = 'en' -%}
137-
{% if app is defined and app.request is defined %}{%- set input_lang = app.request.locale -%}{%- endif -%}
138-
<label for="{{ form.vars.id }}" lang="{{ input_lang }}" {% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
139-
<span class="form-file-text bg-dark text-light">{{ 'choose_file'|trans }}</span>
140-
<span class="form-file-button bg-dark text-light">{{ 'browse'|trans }}</span>
141-
</label>
142-
</{{ element|default('div') }}>
143-
{% endblock %}
144-
145131
{% block form_widget_simple -%}
146132
{% if type is not defined or type != 'hidden' %}
147-
{%- set attr = attr|merge({class: (attr.class|default('') ~ (type|default('') == 'file' ? ' form-file-input' : ' form-control bg-dark text-light'))|trim}) -%}
133+
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control bg-dark text-light')|trim}) -%}
148134
{% endif %}
149135
{%- if type is defined and (type == 'range' or type == 'color') %}
150136
{# Attribute "required" is not supported #}

0 commit comments

Comments
 (0)