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

Open in your IDE?
  1. {% for keyss, 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-sm-6 col-6 p-1 pr-mobile" data-link="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": categ.id}) }}">
  9.             <div class="coup_de_coeur text-center">
  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 text-center">
  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.                         <div>
  18.                             {% if prod.stock <= 0 %}
  19.                                 <h6 class="fw-600 text-grey-color-used-product-no-stock"><i class="text-portail-product-no-stock">SPAS</i>  {{ prod.name|filterName|raw }}</h6>
  20.                             {% else %}
  21.                                 <h6 class="fw-600 text-grey-color-used"><i class="text-portail no-wrap">SPAS</i> {{ prod.name|filterName|raw }}</h6>
  22.                             {% endif %}
  23.                         </div>
  24.                         <div class="row">
  25.                             <div class="col-6 text-small-bolder text-end text-grey-color-used no-wrap">{{ prod | places }} {% trans %}place(s){% endtrans %}</div>
  26.                             <div class="col-6 text-small-bolder text-start text-grey-color-used no-wrap">{{ prod | jets}} {% trans %}jet(s){% endtrans %}</div>
  27.                         </div>
  28.                         <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>
  29.                         <div class="ratings">
  30.                             {% set nbrStartsP = categ.name|number_format %}
  31.                             <div class="d-flex">
  32.                                 {% for i in 1..nbrStartsP %}
  33.                                     <img style="height: 23px;" src="{{ asset("/images/start_actif_hotfix.png") }}" alt="etoile">
  34.                                 {% endfor %}
  35.                             </div>
  36.                         </div>
  37.                     </div>
  38.                     <div>
  39.                         <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  40.                             <div class="responsiveImageProduit">
  41.                                 <img src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">
  42.                             </div>
  43.                         </a>
  44.                     </div>
  45.                     <div class="link-product-stock-mobile mt-3 mb-4">
  46.                         {% if prod.stock <= 0 %}
  47.                             <div class="button-show-detail-red no-wrap">
  48.                                 <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>
  49.                             </div>
  50.                         {% else %}
  51.                             <div class="button-show-detail no-wrap">
  52.                                 <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>
  53.                             </div>
  54.                         {% endif %}
  55.                         <div class=" no-wrap">
  56.                             <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>
  57.                         </div>
  58.                         {#                                        {% if prod.stock <= 0 %}#}
  59.                         {#                                            <p class="text-red-stock-mobile pt-2">{% trans %}Bientôt en stock{% endtrans %}</p>#}
  60.                         {#                                        {% endif %}#}
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.     {% endfor %}
  66. {% endfor %}