{% extends '/front/layout.html.twig' %}
{% trans_default_domain 'app' %}
{% block fondcolor %} blanc{% endblock %}
{% block seotitle %}
{{ infosResidence.seoTitle |raw }}
{% endblock %}
{% block seodesc %}
{{ infosResidence.seoDesc |raw }}
{% endblock %}
{% block microformat %}
{#
{
"@context": "http://schema.org",
"@type": "LodgingBusiness",
"name": "Charmant chalet à la montagne",
"description": "Un magnifique chalet de trois chambres offrant une vue imprenable sur les montagnes.",
"image": "http://exemple.com/photo.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 rue de la Montagne",
"addressLocality": "Ville",
"postalCode": "12345",
"addressCountry": "FR"
},
"telephone": "+33 1 23 45 67 89",
"email": "contact@exemple.com",
"checkinTime": "16:00:00",
"checkoutTime": "11:00:00"
}
#}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.carousel-produit {
background-color:#000;
}
.splide {
padding: 0!important;
}
.splide__slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.splide__slide {
opacity: 0.6;
}
.splide__slide.is-active {
opacity: 1;
}
</style>
{% endblock %}
{% block titre_produit %}
<div id="product-header">
<div class="breadcrumb">
<div class="container">
{% set lieu = "" %}
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
{% for item in breadCrumb %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
{% if item.url is defined %}
<a itemprop="item" href="{{ item.url }}"><span itemprop="name">{{ item.nom }}</span></a> >
<meta itemprop="position" content="{{ loop.index }}" />
{% set lieu = item.nom %}
{% else %}
<span itemprop="name" class="">{{ item.nom }}</span>
<meta itemprop="position" content="{{ loop.index }}" />
{% endif %}
</li>
{% endfor %}
</ol>
</div>
</div>
<div>
<div class="container padding-bottom-5">
<div class="product-title">
<div class="col-md-8 col-sm-12 col-xs-12 padding-off">
<div class="surtitle">{{ lieu }}</div>
<h1 class="title">{{ residence.nom |raw }}</h1>
<div class="subtitle"> {{ infosResidence.resLieu }}</div>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="row">
<div class="col-md-6 produit-label">
{% if infosResidence.logo1Name %}
<img src="{{ vich_uploader_asset(infosResidence, 'logo1File') | imagine_filter('logo_label') }}" >
{% endif %}
</div>
<div class="col-md-6 produit-label">
{% if infosResidence.logo2Name %}
<img src="{{ vich_uploader_asset(infosResidence, 'logo2File') | imagine_filter('logo_label') }}" >
{% endif %}
</div>
</div>
<div class="row">
<div class="col-md-6 produit-label">
{% if infosResidence.logo1Name %}
<p>{{ infosResidence.logo1Title}}</p>
{% endif %}
</div>
<div class="col-md-6 produit-label">
{% if infosResidence.logo2Name %}
<p>{{ infosResidence.logo2Title}}</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block contenu %}
{% include "/front/Produit/hero.html.twig" %}
<div class="container margin-bottom-30" data-exec="page_produit">
<div class="product-container">
<!-- LEFT COL: BEGIN -->
<div id="productContent" class="">
{% include "/front/Produit/fil.html.twig" %}
{% include "/front/Produit/description.html.twig" %}
{% if comm_status %}
<div id="titre_hebergements" class="col-md-12">
{% include "/front/Produit/hebergements.html.twig" with {"typos": typos} %}
</div>
{% endif %}
{% if comm_status %}
<div id="titre_formule" class="col-md-12 margin-bottom-30">
{% include "/front/Produit/formules.html.twig" %}
</div>
{% endif %}
<div id="titre_infos" class="col-md-12 margin-bottom-30">
{% include "/front/Produit/infos.html.twig" %}
</div>
</div>
<!-- LEFT COL: END -->
<!-- RIGHT COL: BEGIN -->
<div id="productResa">
<div id="plizwait" class="fondloader">
<div class="loader"></div>
<div class="fondloader-texte"></div>
</div>
{% if comm_status %}
{% include "/front/Produit/reservation.html.twig" with {"packages": packages, 'travellers': travellers} %}
{% endif %}
</div>
<!-- RIGHT COL: END -->
</div>
</div>
{% endblock %}
{% block footer %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% set datearrivee = travellers['actdatearrivee'] | dateEnToFr %}
{% set datedepart = travellers['actdatedepart'] %}
{% set duree = travellers['actnbnuits'] %}
<script>
var selectedHebergement = '{{ selectedHebergement }}';
var selectedFormule = '{{ selectedFormule }}';
var datesArrivalEnabled = {{ listDatesDebut | raw }};
var listDurees = {{ listDurees | raw }};
var datesdepartureEnabled = [];
var fromDateObj = -1, toDateObj = -1;
var fromDate = '{{ datearrivee }}';
var duree = '{{ duree }}';
var startDate = "{{ datearrivee }}";
var defaultDate = "{{ datearrivee }}";
var ages_url ="{{ path('ac_platform_getages') }}";
var setages_url ="{{ path('ac_platform_setages') }}";
var session_url ="{{ path('ac_platform_setSession') }}";
var addElement_url ="{{ path('ac_platform_addElement') }}";
var ac_platform_produit = "{{ path('ac_platform_produit', {'slug' : slug, 'id': id}) }}";
var ac_platform_produit_refresh = "{{ path('ac_platform_produit_refresh') }}";
var ac_platform_getHebergements = "{{ path('ac_platform_getHebergements', {'id': id}) }}";
var date_naissance_enfant_format_error = "{{ 'reservation.produit.erreurs.date_naissance_enfant_format' |trans({}, 'form') }}";
var dates_naissance_enfant_format_error = "{{ 'reservation.produit.erreurs.dates_naissance_enfant_format' |trans({}, 'form') }}";
var dates_naissance_enfant_validation_error = "{{ 'reservation.produit.erreurs.dates_naissance_enfant_validation' |trans({}, 'form') }}";
var date_naissance_bebe_format_error = "{{ 'reservation.produit.erreurs.date_naissance_bebe_format' |trans({}, 'form') }}";
var dates_naissance_bebe_format_error = "{{ 'reservation.produit.erreurs.dates_naissance_bebe_format' |trans({}, 'form') }}";
var dates_naissance_bebe_validation_error = "{{ 'reservation.produit.erreurs.dates_naissance_bebe_validation' |trans({}, 'form') }}";
var choix_hebergement_error = "{{ 'reservation.produit.erreurs.choix_hebergement' |trans({}, 'form') }}";
var id ='{{ id }}';
{% if comm_status %}
var idPrestation = "{{ idPrestationDefault }}";
{% endif %}
var trans = new Array();
trans['proposition_dates'] = "{{ 'proposition_dates' |trans({}, 'recherche') |e('js') }}";
trans['aucun_resultat'] = "{{ 'aucun_resultat' |trans({}, 'recherche') |e('js') }}";
trans['oups'] = "{{ 'oups' |trans({},'recherche') |e('js')}}";
</script>
{% endblock %}