{% extends '@admin/default_frame.twig' %}

{% set menus = ['setting', 'store', 'plugin', 'plugin_list'] %}

{% block title %}後払い.comプラグイン{% endblock %}
{% block sub_title %}プラグイン設定{% endblock %}

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

{% block stylesheet %}

{% endblock stylesheet %}

{% block main %}

    <form role="form" method="post">

        {{ form_widget(form._token) }}
        <div class="c-contentsArea__cols">
            <div class="c-contentsArea__primaryCol">
                <div class="c-primaryCol">
                    <div class="card rounded border-0 mb-4">
                        <div class="card-header"><span>後払い.comの設定</span></div>
                        <!-- /.box-header -->
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3"><span>事業者ID</span><span class="badge badge-primary ml-1">required</span></div>
                                <div class="col mb-2">
                                    {{ form_widget(form.enterprise_id) }}
                                    {{ form_errors(form.enterprise_id) }}
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3"><span>サイトID</span><span class="badge badge-primary ml-1">required</span></div>
                                <div class="col mb-2">
                                    {{ form_widget(form.site_id) }}
                                    {{ form_errors(form.site_id) }}
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3"><span>APIユーザーID</span><span class="badge badge-primary ml-1">required</span></div>
                                <div class="col mb-2">
                                    {{ form_widget(form.api_user_id) }}
                                    {{ form_errors(form.api_user_id) }}
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3"><span>消費税率</span><span class="badge badge-primary ml-1">required</span></div>
                                <div class="col mb-2">
                                    {{ form_widget(form.tax_rate) }}
                                    {{ form_errors(form.tax_rate) }}
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3"><span>配送会社</span><span class="badge badge-primary ml-1">required</span></div>
                                <div class="col mb-2">
                                    {{ form_widget(form.delivery) }}
                                    {{ form_errors(form.delivery) }}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="c-conversionArea">
            <div class="c-conversionArea__container">
                <div class="row justify-content-between align-items-center">
                    <div class="col-6">
                        <div class="c-conversionArea__leftBlockItem">
                            <a class="c-baseLink"
                               href="{{ url('admin_store_plugin') }}">
                                <i class="fa fa-backward" aria-hidden="true"></i>
                                <span>プラグイン一覧</span>
                            </a>
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="row align-items-center justify-content-end">
                            <div class="col-auto">
                                <button class="btn btn-ec-conversion px-5"
                                        type="submit">登録</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
{% endblock %}
