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

Open in your IDE?
  1. {% for sousCateg in categ.CategorieChild %}
  2.     {% for keys, prod in sousCateg.getProduits() %}
  3.         {% if prod.stock <= 0 %}
  4.             {% set cardClass = 'product-no-stock' %}
  5.         {% else %}
  6.             {% set cardClass = '' %}
  7.         {% endif %}
  8.         <div class="col-xl-2 col-lg-3 col-md-4 col-sm-6 col-6 p-1 hp_block-product-responsive text-center">
  9.             <div class="coup_de_coeur coup_de_coeur_lg">
  10.                 {% if prod.isCoupCoeur %}
  11.                     <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">
  12.                 {% endif %}
  13.             </div>
  14.             <div class="card {{ cardClass }}">
  15.                 <div class="card-body pt-2 pb-2 p-1">
  16.                     <div class="product_one_block_link" style="cursor: pointer;" data-link="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  17.                         {% if prod.stock <= 0 %}
  18.                             <div>
  19.                                 <p class="text-red-stock">Bientôt en stock</p>
  20.                             </div>
  21.                         {% endif %}
  22.                         <div><h6 class="fw-600 text-grey-color-used"><i class="text-portail">SPAS</i> {{ prod.name|filterName|raw }}</h6></div>
  23.                         <div class="row">
  24.                             <div class="col-6 text-small-bolder text-end text-grey-color-used no-wrap">{{ prod | places }} {% trans %}place(s){% endtrans %}</div>
  25.                             <div class="col-6 text-small-bolder text-start text-grey-color-used no-wrap">{{ prod | jets}} {% trans %}jet(s){% endtrans %}</div>
  26.                         </div>
  27.                         {% if not prod.stock <= 0 %}
  28.                             <div class="ratings">
  29.                                 {% set nbrStartsP = categ.name|number_format %}
  30.                                 <div class="d-flex">
  31.                                     {% for i in 1..nbrStartsP %}
  32.                                         <img style="height: 23px;" src="{{ asset("/images/start_actif_hotfix.png") }}" alt="etoile">
  33.                                     {% endfor %}
  34.                                 </div>
  35.                             </div>
  36.                         {% endif %}
  37.                     </div>
  38.                     <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ')  }}€</div>
  39.                     <div id="carouselExampleControls{{ keys }}" class="carousel slide"  data-interval="false">
  40.                         <div class="carousel-indicators">
  41.                             <button type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
  42.                             {% for keyIndicator, prodImage in prod.imageProduits %}
  43.                                 {% if keyIndicator < 7 %}
  44.                                     <button type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide-to="{{ keyIndicator+1 }}" aria-label="Slide {{ keyIndicator }}"></button>
  45.                                 {% endif %}
  46.                             {% endfor %}
  47.                         </div>
  48.                         <div class="carousel-inner">
  49.                             <div class="carousel-item all-products-selected active">
  50.                                 <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  51.                                     <div class="responsiveImageProduit">
  52.                                         <img src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">
  53.                                     </div>
  54.                                 </a>
  55.                             </div>
  56.                             {% for keyImage, prodImage in prod.imageProduits %}
  57.                                 {% if keyImage < 7 %}
  58.                                     <div class="carousel-item all-products-selected">
  59.                                         <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  60.                                             <div class="responsiveImageProduit">
  61.                                                 <img src="{{ asset("/images/images_produits/"~prodImage.image) }}" alt="zaccouzi">
  62.                                             </div>
  63.                                         </a>
  64.                                     </div>
  65.                                 {% endif %}
  66.                             {% endfor %}
  67.                         </div>
  68.                         <button class="carousel-control-prev button-slider-inside-home" type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide="prev">
  69.                             <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  70.                             <span class="visually-hidden">Previous</span>
  71.                         </button>
  72.                         <button class="carousel-control-next button-slider-inside-home" type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide="next">
  73.                             <span class="carousel-control-next-icon" aria-hidden="true"></span>
  74.                             <span class="visually-hidden">Next</span>
  75.                         </button>
  76.                     </div>
  77.                     <div>
  78.                         {% if prod.stock <= 0 %}
  79.                             <div class="button-show-detail-red no-wrap">
  80.                                 <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>
  81.                             </div>
  82.                         {% else %}
  83.                             <div class="button-show-detail no-wrap">
  84.                                 <a class="text-white text-decoration-none" href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">{% trans %}Afficher le{% endtrans %} spa</a>
  85.                             </div>
  86.                         {% endif %}
  87.                         <div class=" no-wrap">
  88.                             <a class="button-add-comparator" href="{{ path("app_comparateur_set_list", {"id_gamme": prod | game, "id_produit": prod.id}) }}">{% trans %}Ajouter au{% endtrans %} {% trans %}comparateur{% endtrans %}</a>
  89.                         </div>
  90.                     </div>
  91.                 </div>
  92.             </div>
  93.         </div>
  94.         {#        <div class="col-xl-2 col-lg-3 col-md-4 p-1">#}
  95.         {#            <div class="coup_de_coeur">#}
  96.         {#                {% if not prod.stock <= 0 %}#}
  97.         {#                    <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">#}
  98.         {#                {% endif %}#}
  99.         {#            </div>#}
  100.         {#            <div class="card {{ cardClass }}">#}
  101.         {#                <div class="card-body pt-2 pb-2 p-1">#}
  102.         {#                    {% if prod.stock <= 0 %}#}
  103.         {#                        <div>#}
  104.         {#                            <p class="text-red-stock">{% trans %}Bientôt en stock{% endtrans %}</p>#}
  105.         {#                        </div>#}
  106.         {#                    {% endif %}#}
  107.         {#                    <div><h6 class="fw-600 text-grey-color-used no-wrap"><i class="text-portail">SPAS</i> {{ prod.getNameLangue(app.request.locale) }}</h6></div>#}
  108.         {#                    <div class="row">#}
  109.         {#                        <div class="col-6 text-small-bolder text-end text-grey-color-used">{{ prod | places }} {% trans %}places{% endtrans %}</div>#}
  110.         {#                        <div class="col-6 text-small-bolder text-start text-grey-color-used">{{ prod | jets}} {% trans %}jets{% endtrans %}</div>#}
  111.         {#                    </div>#}
  112.         {#                    <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>#}
  113.         {#                    {% if not prod.stock <= 0 %}#}
  114.         {#                        <div class="ratings">#}
  115.         {#                            <div class="empty-stars"></div>#}
  116.         {#                            <div class="full-stars" style="width:{{ prod.getNoteClientOfOneProduct(prod.getAvisClients) }}"></div>#}
  117.         {#                        </div>#}
  118.         {#                    {% endif %}#}
  119.         {#                    #}{# slider #}
  120.         {#                    <section class="lazy1 slider" data-sizes="50vw">#}
  121.         {#                        <div class="width-unset d-flex">#}
  122.         {#                            <img height="100%" src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">#}
  123.         {#                        </div>#}
  124.         {#                        {% for prodImage in prod.imageProduits %}#}
  125.         {#                            <div class="width-unset d-flex">#}
  126.         {#                                <img height="100%" src="{{ asset("/images/images_produits/"~prodImage.image) }}" alt="zaccouzi">#}
  127.         {#                            </div>#}
  128.         {#                        {% endfor %}#}
  129.         {#                    </section>#}
  130.         {#                    #}{# slider #}
  131.         {#                    <div>#}
  132.         {#                        {% if prod.stock <= 0 %}#}
  133.         {#                            <div class="button-show-detail-red">#}
  134.         {#                                <a class="text-white text-decoration-none" href="">{% trans %}M'inscrire à la newsletter{% endtrans %} <img class="img-email-newsletter" src="{{ asset("/images/block_products/email.png") }}" alt="email"></a>#}
  135.         {#                            </div>#}
  136.         {#                        {% else %}#}
  137.         {#                            <div class="button-show-detail">#}
  138.         {#                                <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>#}
  139.         {#                            </div>#}
  140.         {#                        {% endif %}#}
  141.         {#                        <div>#}
  142.         {#                            <a class="button-add-comparator" href="{{ path("app_comparateur_set_list", {"id_gamme": categ.id, "id_produit": prod.id}) }}">{% trans %}Ajouter au{% endtrans %} {% trans %}comparateur{% endtrans %}</a>#}
  143.         {#                        </div>#}
  144.         {#                    </div>#}
  145.         {#                </div>#}
  146.         {#            </div>#}
  147.         {#        </div>#}
  148.     {% endfor %}
  149. {% endfor %}