{% extends 'base.html.twig' %} {% block title %}Liste Contracts{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block content %} {% include 'shared/layout/_content-header.html.twig' with { 'item_lien': { 0: { 'label': hotel.name, 'path': path('app_hotel_detail', {'hotelId': hotel.id}) }, 1: { 'label': 'Liste des contrats', 'path': path('app_hotel_contract_index', {'hotelId': hotel.id}) } } } %} {% include 'shared/componnents/_tables/_index.html.twig' with { 'datas': hotel_contract, 'columns': ['Nom contrat', 'Statut', 'Type contrat', 'Fournisseur', 'Commission (O/N)', 'Valeur Commission', 'Marché'], 'entity_name': 'HotelContract', 'item_select2': [ { 'path': 'app_hotel_contract_period_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Périodes:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_disponibility_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Disponibilités:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_adult_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Adultes:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_child_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Enfants:', 'applicable_by_contract_type': hotel_contract[0].type == "per_room" ? "false" : "true" }, { 'path': 'app_hotel_contract_supplement_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Suppléments:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_commission_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Commissions:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_early_booking_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Early booking:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_minimum_stay_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Minimum Stay:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_stop_sale_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Arrêt de vente:', 'applicable_by_contract_type': "true" }, { 'path': 'app_hotel_contract_promo_index', 'mapping_1': 'hotel', 'param_1': 'hotelId', 'attribute_1': 'id', 'param_2': 'hotelContractId', 'attribute_2': 'id', 'label': 'Promos:', 'applicable_by_contract_type': "true" } ] } %} {% endblock %}