{% extends entityName|capitalize ~ '/base.html.twig' %} {% block title %} {{ 'app.order.list.title'|trans }} {% endblock %} {% block toolbar_actions %} {% set orderTypeValid = constant('APP\\Entity\\Order\\OrderInterface::TYPE_VALID') ?? null %} {% set isOrderTypeValid = (orderTypeValid == searchForm.children.type.vars.data) %} {% set isOrderTypeProspective = (orderTypeProspective == searchForm.children.type.vars.data) %} {% if closeShopForm is defined %} {% if null == shop.shopSettings.closeUntil %} {{ 'app.global.buttons.shop.close'|trans }} {% else %} {{ 'app.global.buttons.shop.open'|trans }} {% endif %} {% endif %} {% if (isManager or isShopManager) and orders.items is not empty %} {% if isOrderTypeProspective %} {{ link('export', path('foxorders_' ~ entityName ~ '_order_export_pdf', {'criteria': data, 'entityName': entityName }), 'success', {'type': 'pdf'} )}} {% elseif isOrderTypeValid %} {{ link('export', path('foxorders_' ~ entityName ~ '_order_index', {'criteria': data, 'entityName': entityName, 'id': entityId }), 'success', {'type': 'csv', 'modal' : 'data-bs-toggle=modal data-bs-target=#foxorders_modal_form_email'} )}} {% endif %} {% endif %} {% endblock %} {% block component_search %} {% include 'Search/list.html.twig' %} {% endblock %} {% block component_body %}
{% include 'Order/Components/list.html.twig'%} {% include 'List/pagination.html.twig' with { 'data' : orders } %}
{% endblock %} {% block modals %} {% include 'Modal/form.html.twig' with { 'title': 'app.order.late'|trans, 'id': 'delay', 'modal_size': 'mw-40', } %} {% include 'Modal/form.html.twig' with { 'title': 'app.order.cancel'|trans, 'id': 'cancel', 'modal_size': 'mw-40', } %} {% if emailForm is defined %} {% include 'Modal/form.html.twig' with { 'title': 'app.order.modal.export.title'|trans, 'id': 'email', 'form': emailForm, } %} {% endif %} {% if closeShopForm is defined %} {% include 'Modal/form.html.twig' with { 'title':'app.shop_owner.pages.settings.title'|trans, 'id': 'close', 'shop': shop, 'form': closeShopForm, } %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}