Skip to content

Commit

Permalink
Merge pull request EC-CUBE#5125 from matsuoshi/modify-file-form-style
Browse files Browse the repository at this point in the history
4.1-beta3 : 管理画面 ファイルアップロード UI の修正
  • Loading branch information
okazy authored Aug 31, 2021
2 parents 80677fb + 8a7bf27 commit ce55b43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ file that was distributed with this source code.
{% endif %}
{% endblock %}

{%- block file_widget -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ 'form-control-file')|trim}) -%}
<input type="file" {{ block('widget_attributes') }} {% if value is not empty %}value="{{ value }}" {% endif %}/>
{%- endblock -%}
4 changes: 3 additions & 1 deletion src/Eccube/Resource/template/admin/Store/plugin_install.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ file that was distributed with this source code.
{% block title %}独自プラグインのアップロード{% endblock %}
{% block sub_title %}オーナーズストア{% endblock %}

{% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}

{% block main %}
<form id="upload-form" class="" method="post" action="{{ url('admin_store_plugin_install') }}" enctype="multipart/form-data">
{{ form_widget(form._token) }}
Expand Down Expand Up @@ -43,4 +45,4 @@ file that was distributed with this source code.
</div>
</div>
</form>
{% endblock %}
{% endblock %}
1 change: 1 addition & 0 deletions src/Eccube/Resource/template/admin/Store/plugin_table.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $(function() {
<tbody>
{% for Plugin in Plugins %}
{% set form = plugin_forms[Plugin.id] %}
{% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
<form id="{{ form.vars.name }}" name="{{ form.vars.name }}" method="post" action=""
enctype="multipart/form-data">
<tr class="{% if Plugin.enabled == false %}active{% endif %}">
Expand Down

0 comments on commit ce55b43

Please sign in to comment.