{% import 'shared/componnents/_macros/_alerts.html.twig' as alerts %}
{% extends 'base.html.twig' %}
{% block title %} Modifier période {% endblock %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% block content %}
{% if form.calendar.start.vars.errors|length %}
{{ alerts.notification(form_errors(form.calendar.start), 'info') }}
{% endif %}
{% include 'shared/layout/_content-header.html.twig' with {
'item_lien': {
0: {
'label': hotel.name,
'path': path('app_hotel_detail', {'hotelId': hotel.id})
},
1: {
'label': hotel_contract.name,
'path': path('app_hotel_contract_detail', {'hotelId': hotel.id, 'hotelContractId': hotel_contract.id})
}
}
} %}
{% include 'hotel_contract_period/_form.html.twig' with {
'path': path('app_hotel_contract_period_edit', {
'hotelId': hotel.id,
'hotelContractId': hotel_contract.id,
'hotelContractPeriodId': hotel_contract_period.id
}
),
'path_list': path('app_hotel_contract_period_index', {'hotelId': hotel.id, 'hotelContractId': hotel_contract.id}),
'label_btn': 'Modifier',
'class_alert': 'info'
} %}
{% endblock %}