{% embed "@LcShop/backend/default/block/embed_modal.twig" %}
    {% trans_default_domain 'lcshop' %}

    {% block id %}modal-order-delivery-availability{% endblock %}
    {% block title %}{{ "field.default.deliveryAvailabilty"|trans }}{% endblock %}

    {% block form_start %}
        {{ form_start(form_order_delivery_availability, {'attr': { 'id' : 'orderDeliveryAvailabilityForm'}}) }}) }}
        {% form_theme form_order_delivery_availability '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
    {% endblock %}

    {% block content %}
            <div class="col" v-if="order.deliveryType=='point-sale'">
                {{ form_row(form_order_delivery_availability.deliveryAvailabilityPointSale) }}
            </div>

            <div class="col" v-else-if="order.deliveryType=='home'">
                {{ form_row(form_order_delivery_availability.deliveryAvailabilityZone) }}
            </div>
    {% endblock %}

    {% block footer %}
        {{ parent() }}
        {{ form_widget(form_order_delivery_availability.save, {"attr": {'class' : 'btn btn-primary', '@click' : 'updateOrderDeliveryAvailability'}}) }}

    {% endblock %}

    {% block form_end %}
        {{ form_end(form_order_delivery_availability) }}
    {% endblock %}

{% endembed %}
