diff --git a/src/Eccube/Resource/template/admin/Form/bootstrap_4_horizontal_layout.html.twig b/src/Eccube/Resource/template/admin/Form/bootstrap_4_horizontal_layout.html.twig index 55d6c042e3b..4323236441c 100644 --- a/src/Eccube/Resource/template/admin/Form/bootstrap_4_horizontal_layout.html.twig +++ b/src/Eccube/Resource/template/admin/Form/bootstrap_4_horizontal_layout.html.twig @@ -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}) -%} + +{%- endblock -%} diff --git a/src/Eccube/Resource/template/admin/Store/plugin_install.twig b/src/Eccube/Resource/template/admin/Store/plugin_install.twig index 3324b341c98..34af6b79e76 100644 --- a/src/Eccube/Resource/template/admin/Store/plugin_install.twig +++ b/src/Eccube/Resource/template/admin/Store/plugin_install.twig @@ -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_widget(form._token) }} @@ -43,4 +45,4 @@ file that was distributed with this source code.
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/Eccube/Resource/template/admin/Store/plugin_table.twig b/src/Eccube/Resource/template/admin/Store/plugin_table.twig index 024fa08f7c9..8d2d1af0015 100644 --- a/src/Eccube/Resource/template/admin/Store/plugin_table.twig +++ b/src/Eccube/Resource/template/admin/Store/plugin_table.twig @@ -32,6 +32,7 @@ $(function() { {% for Plugin in Plugins %} {% set form = plugin_forms[Plugin.id] %} + {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}