templates/FrontCommun/SejourHotel/availability/vuejs-components/item-hotel-content.html.twig line 1

Open in your IDE?
  1. {{ macro('sejour-hotel.availability').templateComponentSupplement() }}
  2. <template id="item-hotel">
  3.     {% if (onlyHotelPrice is defined and onlyHotelPrice) or plateforme_hotel == 'true' %}
  4.         <item-pension-room ref="pensionRoom" :hotel="hotel"></item-pension-room>
  5.     {% else %}
  6.         <div class="item-wrap">
  7.             <div class="property-item">
  8.                 <div class="hotel-header" id="hotel">
  9.                     <div class="image-block">
  10.                         <figure class="item-thumb">
  11.                             <span class="label-featured label label-success lbl-etiquette"
  12.                                   :style="{ backgroundColor:etiquette.color , top:etiquette.top+'px' }"
  13.                                   v-for="etiquette in hotel.etiquettes" :class="`etiquette-${etiquette.slug}`">
  14.                                     <img :src="etiquette.icon" onerror="javascript:this.remove()"
  15.                                          v-if="typeof etiquette.icon !== 'undefined' && etiquette.icon != null">
  16.                                         <span v-if="etiquette.promotion !== undefined">-${etiquette.promotion}%</span>
  17.                                         <span v-else>${etiquette.libelle}</span>
  18.                             </span>
  19.                             <div class="price hide-on-list price-hide-on-list">
  20.                                 <p class="price-start"> {{ "à partir de"|trans }}</p>
  21.                                 <h3 class="price-start">${ hotel.minPrix } {{ deviseSelected().symbole }} </h3>
  22.                                 <p class="rant old-price" v-if="hotel.minPrix != hotel.minBasePrix">
  23.                                     ${ hotel.minBasePrix } {{ deviseSelected().symbole }}
  24.                                 </p>
  25.                                 <p class="rant price-start">${ hotel.minArrangement }</p>
  26.                             </div>
  27.                             {{ macro('sejour-hotel.availability').itemHotelImage() }}
  28.                         </figure>
  29.                     </div>
  30.                     <div class="item-body">
  31.                         <div class="col table-cell">
  32.                             <div class="info-row">
  33.                                 <div class="row d-flex">
  34.                               <div class="box-mobile-left">
  35.                                 {{ macro('sejour-hotel.availability').itemHotelNameStarts() }}
  36.                               </div>
  37.                                <div class="box-mobile-right">
  38.                                    <div class="price hide-on-list price-hide-on-list">
  39.                                        <img v-for="etiquette in hotel.etiquettesEmplacement" :src="etiquette.media"
  40.                                             :class="`etiquette-${etiquette.slug}`"
  41.                                             style="height: 40px;width: 40px">
  42.                                        {% if configAffichage.HOTEL.CHECK_IMG_RECOMMANDED %}
  43.                                            <span class=" hotel-recommander">
  44.                                         <img v-if="hotel.recommander" src="{{ domaineBack() ~ '/file_manager/source/hotel_recommanded.svg' }}"
  45.                                              height="35px" width="35px"/>
  46.                                     </span>
  47.                                        {% endif %}
  48.                                        <span class="tripAdvisor text-end" v-html="hotel.tripAdvisor"></span>
  49.                                    </div>
  50.                                </div>
  51.                                 </div>
  52.                                 <h4 class="property-location">
  53.                                     <i class="fa fa-map-marker-alt fa-1" aria-hidden="true" ></i>
  54.                                     ${ hotel.ville }</h4>
  55.                                 {% if 'description' in configAffichage.HOTEL.DESCRIPTION_BLOC_HOTEL %}
  56.                                     <div class="large-content" v-if="hotel.description !== undefined && hotel.description !== null">
  57.                                         <p class="text-crope" v-html="hotel.description.removeSizeStyles()"></p>
  58.                                     </div>
  59.                                 {% endif %}
  60.                                 <div class="tagcloud" id="theme-hotel-list">
  61.                                     <a v-for="tag in hotel.tags">${ tag.libelle }</a>
  62.                                 </div>
  63.                                 {% if 'icons' in configAffichage.HOTEL.DESCRIPTION_BLOC_HOTEL %}
  64.                                     <ul class="actions">
  65.                                         <li v-for="amenagement in hotel.amenagements">
  66.                                             <img data-toggle="tooltip" data-placement="top" class="amenagement"
  67.                                                  v-if="amenagement.icone"
  68.                                                  :title="amenagement.libelle"
  69.                                                  :src="` {{ domaineBack() }}/${ amenagement.icone }`">
  70.                                         </li>
  71.                                     </ul>
  72.                                 {% endif %}
  73.                                 <div class="label-wrap" id="etiquette-hotel-list">
  74.                                     <div class="label-status label" :style="{ backgroundColor:etiquette.color }"
  75.                                          v-for="etiquette in hotel.etiquettesSaison"
  76.                                          :class="`etiquette-${etiquette.slug}`">
  77.                                         <span v-if="etiquette.promotion !== undefined">-${etiquette.promotion}% {{ "jusqu'au"|trans }} ${etiquette.fin} </span>
  78.                                         <span v-else>${etiquette.libelle}</span>
  79.                                         <i
  80.                                                 v-if="typeof etiquette.hasCountDown !== 'undefined' && etiquette.hasCountDown"
  81.                                                 ref="countdown" :data-time="etiquette.countdownDate.date"></i>
  82.                                     </div>
  83.                                 </div>
  84.                             </div>
  85.                         </div>
  86.                         <div class="table-cell hidden-gird-cell">
  87.                             <div class="info-row price">
  88.                                 <div class="price   etiq-mobile">
  89.                                     <img v-for="etiquette in hotel.etiquettesEmplacement" :src="etiquette.media"
  90.                                          :class="`etiquette-${etiquette.slug}`"
  91.                                          style="height: 40px;width: 40px">
  92.                                     {% if configAffichage.HOTEL.CHECK_IMG_RECOMMANDED %}
  93.                                         <span class=" hotel-recommander">
  94.                                             <img v-if="hotel.recommander" src="{{ domaineBack() ~ '/file_manager/source/hotel_recommanded.svg' }}"  style="height: 40px;width: 40px" />
  95.                                         </span>
  96.                                     {% endif %}
  97.                                 </div>
  98.                                 <p class="tripAdvisor" v-html="hotel.tripAdvisor"></p>
  99.                                 <p class="price-start">{{ "à partir de"|trans }}</p>
  100.                                 {{ macro('sejour-hotel.availability').itemHotelPrice() }}
  101.                                 <p class="rant old-price" v-if="hotel.minBasePrix != hotel.minPrix">
  102.                                     ${ hotel.minBasePrix
  103.                                     } {{ deviseSelected().symbole }} </p>
  104.                                 <p class="rant">${ hotel.minArrangement }</p>
  105.                                 {% if configAffichage.HOTEL.DISPLAY_PRICE_HALF_DOUBLE == 'oui' %}
  106.                                     <h3 v-if="minPrix2Loading" class="price-start ssc-head-line mb"></h3>
  107.                                     <h3 v-else-if="parseFloat(minPrix2.prix)>0" class="price-start" :title="minPrix2.chambre + ' en ' + minPrix2.arrangement">${ minPrix2.prix } {{ deviseSelected().symbole }} </h3>
  108.                                     <h3 v-if="!minPrix2Loading && parseFloat(minPrix2.prix) == 0" class="price-start">{{ "non disponible"|trans }}</h3>
  109.                                 {% endif %}
  110.                             </div>
  111.                             <a class="btn btn-primary" @click="loadPrices($event)" role="button">{{ "Tarifs & Chambres"|trans }}<i
  112.                                         class="fa fa-angle-right fa-right"></i>
  113.                             </a>
  114.                         </div>
  115.                         <div class="table-list full-width hide-on-list">
  116.                             <div class="cell">
  117.                                 <div class="phone">
  118.                                     <a class="btn btn-primary" @click="loadPrices($event)" role="button">{{ "Tarifs & Chambres"|trans }}
  119.                                         <i class="fa fa-angle-right fa-right"></i>
  120.                                     </a>
  121.                                 </div>
  122.                             </div>
  123.                         </div>
  124.                     </div>
  125.                 </div>
  126.                 <div class="collapse {% if configAffichage.HOTEL.DEFAULT_OPEN_BLOC_CHAMBRE_TARIFS=='open' %} in {% endif %}"
  127.                      :id="`tarifs-hotel-${index_hotel}`">
  128.                     <item-pension-room ref="pensionRoom" :hotel="hotel"></item-pension-room>
  129.                 </div>
  130.             </div>
  131.         </div>
  132.     {% endif %}
  133. </template>