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

{% set menus = ['plg_apg_simple_calendar', 'plg_apg_simple_calendar_admin_config_regular_holidays'] %}

{% block title %}定休日カレンダー{% endblock %}
{% block sub_title %}定休日(曜日指定){% endblock %}

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

{% block stylesheet %}{% endblock stylesheet %}

{% block javascript %}{% endblock javascript %}

{% 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>曜日指定</span></div>
                        <div class="card-body">
                            <div class="row">
                                <div class="col-3">
                                    <div class="d-inline-block" data-tooltip="true" data-placement="top"
                                         title="定休日表示としたい曜日にチェックを入れてください。">
                                        <span>曜日指定</span>
                                        <i class="fa fa-question-circle fa-lg ml-1"></i>
                                    </div>
                                </div>
                                <div class="">
                                    {{ form_widget(form.regular_holidays_arr,{'attr': {'class': 'form-check-inline'}}) }}
                                    {{ form_errors(form.regular_holidays_arr) }}
                                </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('apg_simple_calendar_admin_config') }}">
                                <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 %}
