{#
component: calendar form
action {string}: Action du formulaire
#}
{% set props = {
action: null,
}|merge(props|default({})) %}
<div
data-component="calendar-form" class="CalendarForm-component">
{# Form #}
<form
action="{{ props.action }}" method="POST" class="CalendarForm-form" ref="form">
{# Inputs #}
<div class="CalendarForm-inputs" style="display:none">
{% if props.directementtunnel is not defined or props.directementtunnel == 0 %}
<input type="text" class="InputForm " name="title" ref="title" value="">
<input type="text" class="InputForm " name="id" ref="id" value="">
<input type="text" class="InputForm " name="duration" ref="duration" value="">
<input type="text" class="InputForm " name="program" ref="program" value="">
<input type="text" class="InputForm " name="program-id" ref="programId" value="">
<input type="text" class="InputForm " name="departure" ref="departure" value="">
<input type="text" class="InputForm " name="arrival" ref="arrival" value="">
<input type="text" class="InputForm " name="price" ref="price" value="">
<input type="text" class="InputForm " name="accomodation" ref="accomodation" value="">
<input type="text" class="InputForm " name="isGift" ref="isgift" value="false">
{% else %}
<input type="text" class="InputForm " name="title" ref="title" value="{{ props.surtitre}}{{ props.titre_principal}}">
<input type="text" class="InputForm " name="id" ref="id" value="{{props.id}}">
<input type="text" class="InputForm " name="duration" ref="duration" value="{{ props.min_days }}">
<input type="text" class="InputForm " name="program" ref="program" value="">
<input type="text" class="InputForm " name="program-id" ref="programId" value="">
<input type="text" class="InputForm " name="departure" ref="departure" value="{{props.departure}}">
<input type="text" class="InputForm " name="arrival" ref="arrival" value="{{ props.arrival}}">
<input type="text" class="InputForm " name="price" ref="price" value="{{ props.prix_apartir}}">
<input type="text" class="InputForm " name="accomodation" ref="accomodation" value="{{props.accomodation}}">
<input type="text" class="InputForm " name="isGift" ref="isgift" value="false">
{% endif %}
{# <input type="text" class="InputForm " name="title" ref="title" value="3 jours & 2 nuits Séjour mai-juin">
<input type="text" class="InputForm " name="id" ref="id" value="">
<input type="text" class="InputForm " name="duration" ref="duration" value="3">
<input type="text" class="InputForm " name="program" ref="program" value="">
<input type="text" class="InputForm " name="program-id" ref="programId" value="">
<input type="text" class="InputForm " name="departure" ref="departure" value="2024-05-31">
<input type="text" class="InputForm " name="arrival" ref="arrival" value="2024-06-02">
<input type="text" class="InputForm " name="price" ref="price" value="960">
<input type="text" class="InputForm " name="accomodation" ref="accomodation" value="true">
<input type="text" class="InputForm " name="isGift" ref="isgift" value="false"> #}
</div>
</form>
</div>