{% extends 'Shop/base.html.twig' %} {% block title %} {{ 'app.shop_owner.pages.menus.head_title'|trans }} {% endblock %} {% block toolbar_actions %} {{ 'app.global.buttons.add'|trans }} {% endblock %} {% block component_body %}
{% if menus|length > 0 %}
{% include 'Extentions/Icons/layouts.html.twig' %}
{{ 'app.shop_owner.pages.menus.list.title'|trans }}
{% for menu in menus %}
{{menu.name}}
{{ link('show', path('foxorders_shop_menu_show', {'id': menu.id})) }} {{ link('edit','modal', 'success', {'entity-id' : menu.id, 'entity-name' : menu.name, 'modalId': 'foxorders_modal_form_shop' }) }} {% if 1 < menus.count %} {% include 'Includes/delete.html.twig' with { 'route': path('foxorders_shop_menu_delete', {'id': menu.id}) , 'token': csrf_token('delete' ~ menu.id), 'button': 'list_delete' } %} {% endif %}
{% endfor %}
{% else %}
{{ 'app.global.detail.no_record_found'|trans }}
{% endif %} {% include 'List/pagination.html.twig' with { 'data' : menus } %}
{% endblock %} {% block modals %} {% include 'Modal/form.html.twig' with { 'title': 'app.shop_owner.pages.menus.new.title'|trans, 'id': 'shop', } %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}