templates/list_spa/_partial/_allProductDesktopIntegral.html.twig line 1

Open in your IDE?
  1. <div class="" style="display: contents!important;">
  2.     {% for keyss, sousCateg in categ.CategorieChild %}
  3.         {% for keys, prod in sousCateg.getProduits() %}
  4.             {% if keys==0 %}
  5.                 {% set active = 'active' %}
  6.             {% else %}
  7.                 {% set active = '' %}
  8.             {% endif %}
  9.             {% if prod.stock <= 0 %}
  10.                 {% set cardClass = 'product-no-stock' %}
  11.             {% else %}
  12.                 {% set cardClass = '' %}
  13.             {% endif %}
  14.             <div class="col-xl-2 col-lg-3 col-md-4 p-1 hp_block-product-responsive">
  15.                 <div class="coup_de_coeur coup_de_coeur_lg">
  16.                     {% if prod.isCoupCoeur %}
  17.                         <img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur"> <span class="text-coup-coeur">{% trans %}COUP DE COEUR{% endtrans %} SPA.BIZ</span> <img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur">
  18.                     {% endif %}
  19.                 </div>
  20.                 <div class="card {{ cardClass }}">
  21.                     <div class="card-body pt-2 pb-2 p-1">
  22.                         <div class="product_one_block_link" style="cursor: pointer;" data-link="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  23.                             {% if prod.stock <= 0 %}
  24.                                 <div>
  25.                                     <p class="text-red-stock">Bientôt en stock</p>
  26.                                 </div>
  27.                             {% endif %}
  28.                             <div><h6 class="fw-600 text-grey-color-used"><i class="text-portail">SPAS</i> {{ prod.name|filterName|raw }}</h6></div>
  29.                             <div class="row">
  30.                                 <div class="col-6 text-small-bolder text-end text-grey-color-used">{{ prod | places }} {% trans %}place(s){% endtrans %}</div>
  31.                                 <div class="col-6 text-small-bolder text-start text-grey-color-used">{{ prod | jets}} {% trans %}jet(s){% endtrans %}</div>
  32.                             </div>
  33.                             <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>
  34.                             {% if not prod.stock <= 0 %}
  35.                                 <div class="ratings">
  36.                                     {% set nbrStartsP = categ.name|number_format %}
  37.                                     <div class="d-flex">
  38.                                         {% for i in 1..nbrStartsP %}
  39.                                             <img style="height: 23px;" src="{{ asset("/images/start_actif_hotfix.png") }}" alt="etoile">
  40.                                         {% endfor %}
  41.                                     </div>
  42.                                 </div>
  43.                             {% endif %}
  44.                         </div>
  45.                         <div id="carouselExampleControls{{ prod.id }}{{ keys }}" class="carousel slide"  data-interval="false">
  46.                             <div class="carousel-indicators">
  47.                                 <button type="button" data-bs-target="#carouselExampleControls{{ prod.id }}{{ keys }}" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
  48.                                 {% for keyIndicator, prodImage in prod.imageProduits %}
  49.                                     {% if keyIndicator < 7 %}
  50.                                         <button type="button" data-bs-target="#carouselExampleControls{{ prod.id }}{{ keys }}" data-bs-slide-to="{{ keyIndicator+1 }}" aria-label="Slide {{ keyIndicator }}"></button>
  51.                                     {% endif %}
  52.                                 {% endfor %}
  53.                             </div>
  54.                             <div class="carousel-inner">
  55.                                 <div class="carousel-item all-products-selected active">
  56.                                     <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  57.                                         <div class="responsiveImageProduit">
  58.                                             <img src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">
  59.                                         </div>
  60.                                     </a>
  61.                                 </div>
  62.                                 <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  63.                                     {% for keyImage, prodImage in prod.imageProduits %}
  64.                                         {% if keyImage < 7 %}
  65.                                             <div class="carousel-item all-products-selected">
  66.                                                 <div class="responsiveImageProduit">
  67.                                                     <img src="{{ asset("/images/images_produits/"~prodImage.image) }}" alt="zaccouzi">
  68.                                                 </div>
  69.                                             </div>
  70.                                         {% endif %}
  71.                                     {% endfor %}
  72.                                 </a>
  73.                             </div>
  74.                             <button class="carousel-control-prev button-slider-inside" type="button" data-bs-target="#carouselExampleControls{{ prod.id }}{{ keys }}" data-bs-slide="prev">
  75.                                 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  76.                                 <span class="visually-hidden">Previous</span>
  77.                             </button>
  78.                             <button class="carousel-control-next button-slider-inside" type="button" data-bs-target="#carouselExampleControls{{ prod.id }}{{ keys }}" data-bs-slide="next">
  79.                                 <span class="carousel-control-next-icon" aria-hidden="true"></span>
  80.                                 <span class="visually-hidden">Next</span>
  81.                             </button>
  82.                         </div>
  83.                         <div>
  84.                             {% if prod.stock <= 0 %}
  85.                                 <div class="button-show-detail-red">
  86.                                     <a class="text-white text-decoration-none" href="">{% trans %}M'inscrire à la newsletter{% endtrans %} <img class="img-email-newsletter" src="/images/block_products/email.png" alt="email"></a>
  87.                                 </div>
  88.                             {% else %}
  89.                                 <div class="button-show-detail">
  90.                                     <a class="text-white text-decoration-none" href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": categ.id}) }}">{% trans %}Afficher le{% endtrans %} spa</a>
  91.                                 </div>
  92.                             {% endif %}
  93.                             <div>
  94.                                 <a class="button-add-comparator no-wrap" href="{{ path("app_comparateur_set_list", {"id_gamme": categ.id, "id_produit": prod.id}) }}">{% trans %}Ajouter au{% endtrans %} {% trans %}comparateur{% endtrans %}</a>
  95.                             </div>
  96.                         </div>
  97.                     </div>
  98.                 </div>
  99.             </div>
  100.         {% endfor %}
  101.     {% endfor %}
  102. </div>