templates/front/Produit/formule_item.html.twig line 1

Open in your IDE?
  1. <!-- cas package -->
  2. {% for formule in formules %}
  3.     <div id="formule-info-{{ formule.idIresa }}" class="packformule {{ formule.type }}
  4.         {#
  5.             {% if attribute(fiche, "pack_heb" ) is defined %}pack_heb{% endif %}
  6.             {% if attribute(fiche, "pack_loisir" ) is defined %}pack_loisir
  7.             {% for key, elem in fiche.pack_loisir if 'theme_' in key and elem == 1 %} {{ key }}{% endfor %}
  8.             {% endif %}
  9.         #}
  10.     ">
  11.         <div class="width-100 formule-bloc">
  12.             <div class="width-100">
  13.                 {% if formule.photoProfil is empty %}
  14.                     <img src="{{ asset('build/images/front/locatif-default.jpg') }}" class="float-left img-responsive margin-bottom-10" />
  15.                 {% else %}
  16.                     <img src="{{  vich_uploader_asset(formule, 'photoProfilFile')  | imagine_filter('photoProfil') }}" class="float-left img-responsive margin-bottom-10">
  17.                 {% endif %}
  18.     
  19.                 <div class="titre-formule">
  20.                     {{ formule.nom|raw }}
  21.                 </div>
  22.                
  23.                 <div class="desc">
  24.                     {{ formule.description|raw }}  
  25.                     <a href="#services_{{ formule.idIresa}}" class="btn btn-info" data-toggle="modal">{{ 'ancre.voir_detail' |trans({},'app') |raw }}</a>
  26.                      <div class="resa-formule-dispo text-danger margin-top-10">{{ 'produit.hebergement.non_disponible' |trans({}, 'app') }}</div>
  27.                    
  28.                 </div>
  29.             </div>
  30.         </div>
  31.     </div>
  32.     
  33.      <!-- Modal -->
  34.                        
  35.     <div class="modal fade" id="services_{{ formule.idIresa}}" tabindex="-1" role="dialog" data-target="#servicesmodal">
  36.             <div class="modal-dialog modal-lg" role="document">
  37.             <div class="modal-content">
  38.                 <div class="modal-header">
  39.                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  40.                     <h4 class="modal-title" id="myModalLabel">{{ formule.nom }}</h4>
  41.                 </div>
  42.                 <div class="modal-body">
  43.                     {% if formule.photoPopin is not empty %}
  44.                         <img src="{{  vich_uploader_asset(formule, 'photoPopinFile') | imagine_filter('photoPopin') }}" class="float-left img-responsive margin-bottom-10">
  45.                     {% elseif formule.photoProfil is not empty %}
  46.                         <img src="{{  vich_uploader_asset(formule, 'photoProfilFile') | imagine_filter('photoPopin') }}" class="float-left img-responsive margin-bottom-10">
  47.                     {% else %}
  48.                     
  49.                     {% endif %}
  50.                     
  51.                     <div class="row margin-top-20">
  52.                         <div class="col-md-12">
  53.                             {% if formule.descriptionPopin is defined and formule.descriptionPopin is not empty %}
  54.                                 {{ formule.descriptionPopin |raw }}
  55.                             {% elseif formule.resBigdesc is defined and formule.resBigdesc is not empty %}
  56.                                 {{ formule.resBigdesc |raw }}
  57.                             {% endif %}
  58.                         </div>
  59.                     </div>
  60.                     <div class="row margin-top-20">
  61.                         <div class="col-md-6">
  62.                             {% if formule.serviceInc is not empty %}
  63.                                 <b>{{ 'reservation.formule.inclus' |trans({},'app') |raw }}</b><br>
  64.                                     {{ formule.serviceInc |raw }}
  65.                             {% endif %}
  66.                         </div>
  67.                         <div class="col-md-6">
  68.                             {% if formule.serviceNoinc is not empty %}
  69.                                 <b>{{ 'reservation.formule.en_supplement' |trans({},'app') |raw }}</b><br>
  70.                                 {{ formule.serviceNoinc |raw }}
  71.                             {% endif %}
  72.                         </div>
  73.                     </div>
  74.                 </div>
  75.                 <div class="modal-footer">
  76.                     <button type="button" class="btn-ateya float-right" data-dismiss="modal">{{ 'ancre.fermer' |trans({}, 'app')}}</button>
  77.                     <div class="clear"></div>
  78.                 </div>
  79.             </div>
  80.         </div>
  81.     </div>
  82.     
  83.     <!-- fin Modal -->
  84. {% endfor %}
  85. <!-- fin cas package -->