{% import 'shared/componnents/_macros/_glyphicons.html.twig' as glyphicons %} {% import 'shared/componnents/_macros/_alerts.html.twig' as alerts %} {% set errors = errors is defined ? errors : null %} {% extends 'base.html.twig' %} {% block title %} Liste réservations {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block content %} {% if errors is not null %} {{ alerts.notification(errors, 'info')|raw }} {% endif %} {% include 'shared/layout/_content-header.html.twig' with { 'item_lien': [ { 'label': 'Liste des réservations', 'path': path('app_booking_index') } ] } %} {% include 'shared/componnents/_tables/_index.html.twig' with { 'datas': bookings, 'columns': ['Num résa', 'Num voucher', 'Montant & Paiement', 'Hôtel', 'Client', 'Email', 'Télephone', 'Période', 'Date création', 'Statut'], 'entity_name': 'Booking', 'item_remove': true, 'item_show': true, 'item_preview_pdf': { 'action': true, 'path': 'app_booking_preview_pdf', "mapping_1": 'bookingNumber', 'attribute_1': 'bookingNumber', 'attribute_2': 'type', 'attribute_2_value': 'voucher' }, 'item_send_document': { 'action': true, 'path': 'app_booking_preview_pdf', "mapping_1": 'bookingNumber', 'attribute_1': 'bookingNumber', 'attribute_2': 'type', 'attribute_2_value': 'voucher' } } %} {% endblock %}