{% 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 %}