{% extends 'Shop/base.html.twig' %} {% block title %} {{ 'app.shop_owner.pages.devices.title'|trans }} {% endblock %} {% block toolbar_actions %} {% if isPreviousAdmin %} {{ 'app.global.buttons.add'|trans }} {% endif %} {% endblock %} {% block component_search %} {% include 'Search/list.html.twig' %} {% endblock %} {% block component_body %} {% set defaultDeviceType = constant('APP\\Entity\\Device\\DeviceInterface::DEVICE_TYPE_WEB_SITE') ?? null %} {% include 'List/switch_table_list.html.twig' with {'totalCountPagination': devices.getPaginationData.totalCount, 'cardView': true} %}
{% include 'Shop/Device/Lists/table.html.twig' %} {% include 'Shop/Device/Lists/cards.html.twig' %} {% include 'List/pagination.html.twig' with { 'data' : devices } %}
{% endblock %} {% block modals %} {% include 'Modal/form.html.twig' with { 'title': 'app.shop_owner.pages.devices.new.title'|trans, 'id': 'shop', } %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}