<div class="booking-promo">
<form class="booking-promo--form" id="promo-form" action="" data-promocode="{{ promotion.miraiClientCode }}" data-idoffers="{{ promotion.miraiOfferId }}" data-lang="{{app.request.locale}}">
<div class="booking-promo--item booking-promo--hotel {% if promotion.hotels|length <= 1 %} no-dropdown {% endif %}">
<span class="booking-promo--hotel-selected">{{ 'app.global.select_hotel' | trans }}</span>
{% if promotion.hotels|length > 1 %}
{% include 'partials/global/svg/dropdown.svg.twig' %}
{% endif %}
<div class="booking-promo--dropdown booking-promo--dropdown-hotel">
{% for hotel in promotion.hotels %}
<input type="radio" name="hotel-option" id="{{ hotel.hotelClass }}" value="{{ hotel.miraiHotelId }}" {% if loop.first and promotion.hotels|length <= 1 %}checked="checked"{% endif %}
>
<label for="{{ hotel.hotelClass }}">{{ hotel.title }}</label>
{% endfor %}
</div>
</div>
{% set dateStart = promotion.validFrom is null ? promotion.validFrom : promotion.validFrom|date('Y-m-d') %}
{% set dateEnd = promotion.validTo is null ? promotion.validTo : promotion.validTo|date('Y-m-d') %}
<div class="booking-promo--item booking-promo--date {% if promotion.closedDates %} disabled{% endif %}">
<span class="booking-promo--date-selected-in"></span>
{% include 'partials/global/svg/dropdown.svg.twig' %}
<div class="booking-promo--dropdown booking-promo--dropdown-date-in" data-start="{{dateStart}}"
data-end="{{dateEnd}}" data-max-nights="{{ promotion.maxNights }}"
data-min-nights="{{ promotion.minNights }}">
<div class="flatpickr-wrapper">
<input type="text" id="promo-date-in" name="" min=""
class="date-input default-theme form-control flatpickr-input active" value="" hidden>
</div>
</div>
</div>
<div class="booking-promo--item booking-promo--date is-out">
<span class="booking-promo--date-selected-out"></span>
{% include 'partials/global/svg/dropdown.svg.twig' %}
<div class="booking-promo--dropdown booking-promo--dropdown-date-out">
<div class="flatpickr-wrapper">
<input type="text" id="promo-date-out" name="" min=""
class="date-input default-theme form-control flatpickr-input active" value="" hidden>
</div>
</div>
</div>
<div class="booking-promo--item booking-promo--submit">
<button class="booking-promo--submit-button button green is-dark" type="submit">
<span>{{ 'app.booking_form.book' | trans }}</span>
</button>
</div>
<div class="booking-promo--validation">
<span class="booking-promo--validation-text validations-select">{{ 'app.global.select_hotel_validation' | trans }}</span>
<span class="booking-promo--validation-text validations-date">{{ 'app.global.select_date_validation' | trans }}</span>
</div>
</form>
{% if promotion.closedDates %}
<div class="booking-promo--closed">
{{ 'app.promotions.closed_dates' | trans }}
</div>
{% endif %}
</div>