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

    {% block id %}modal-add-product-to-order{% endblock %}
    {% block title %}{{ "action.order.addOrderProduct"|trans }}{% endblock %}

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

    {% block content %}
        <div class="col">
            {{ form_row(form_add_product_to_order.product, {'attr': {"v-model" : 'addProductId'}}) }}
        </div>
        <div class="col">
            {{ form_row(form_add_product_to_order.quantity, {'attr': {"v-model" : 'addProductQuantity'}}) }}
        </div>

    {% endblock %}

    {% block footer %}
        {{ parent() }}
        {{ form_widget(form_add_product_to_order.add, {"attr": {'class' : 'btn btn-primary', '@click' : 'addProductToOrder'}}) }}
    {% endblock %}

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

{% endembed %}

{% trans_default_domain 'lcshop' %}

