<strong>{% if isDateAvailable %}Veuillez choisir un créneau !{% else %}Aucune date disponible{% endif %}</strong><br/><br/>
{% set trans_month_hash = {
"January": "Janvier",
"February": "Février",
"March": "Mars",
"April": "Avril",
"May": "Mai",
"June": "Juin",
"July": "Juillet",
"August": "Août",
"September": "Septembre",
"October": "Octobre",
"November": "Novembre",
"December": "Décembre"
}
%}
{% set trans_day_hash = {
"Monday": "Lundi",
"Tuesday": "Mardi",
"Wednesday": "Mercredi",
"Thursday": "Jeudi",
"Friday": "Vendredi",
"Saturday": "Samedi",
"Sunday": "Dimanche"
}
%}
{% if dates is not empty %}
<p>Date(s) disponible(s)</p>
{% for date, times in dates %}
<div class="mt-3">
{% set french_day = trans_day_hash[date|date('l', 'Europe/Paris')] %}
{% set french_month = trans_month_hash[date|date('F', 'Europe/Paris')] %}
<strong>{{ french_day ~ " " ~ date|date('j', 'Europe/Paris') ~ " " ~ french_month ~ " " ~ date|date('Y', 'Europe/Paris') }}</strong>
<div class="time-wrapper d-flex flex-wrap">
{% for time in times %}
<div class="time" data-date="{{ date }} {{ time }}">{{ time }}</div>
{% endfor %}
</div>
</div>
{% endfor %}
{% endif %}