{% extends 'layout/base.html.twig' %} {% set i18n_prefix = _self|i18n_prefix %} {% block body %}
{% include 'components/layout/_back_to_link.html.twig' with { name: 'templates.pages.product.product_availability.back_to_list'|trans, link: { name: 'app_user_' ~ product.type.value ~ 's' } } %}
{% include 'components/layout/_title_3.html.twig' with { name: 'templates.pages.product.product_availability.title'|trans } %} {{ form_start(form) }} {% include 'components/product/_calendar.html.twig' with { title: (i18n_prefix ~ '.subtitle')|trans, form: form, actionNeeded: true } %} {{ form_end(form) }}
{% if unavailabilities is not empty %}
{% include 'components/layout/_title_3.html.twig' with { name: (i18n_prefix ~ '.delete_title')|trans } %}
{% for unavailability in unavailabilities %}
{{ (i18n_prefix ~ '.date')|trans({ '%startAt%': unavailability.startAt|date('format.date'|trans({}, 'date')), '%endAt%': unavailability.endAt|date('format.date'|trans({}, 'date')) }) }} supprimer
{% endfor %}
{% endif %}
{% endblock %} {% block link %}{% endblock %}