File tree Expand file tree Collapse file tree 3 files changed +9
-23
lines changed Expand file tree Collapse file tree 3 files changed +9
-23
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change 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 #}
You can’t perform that action at this time.
0 commit comments