templates/list_spa/_partial/_oneProductMobil.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 }} product_one_block_link" style="cursor: pointer;" data-link="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  15.                 <div class="card-body text-center">
  16.                     <div>
  17.                         {% if prod.stock <= 0 %}
  18.                             <h6 class="fw-600 text-grey-color-used-product-no-stock"><i class="text-portail-product-no-stock">SPAS</i>  {{ prod.getNameLangue(app.request.locale)|filterName|raw }}</h6>
  19.                         {% else %}
  20.                             <h6 class="fw-600 text-grey-color-used"><i class="text-portail">SPAS</i> {{ prod.name|filterName|raw }}</h6>
  21.                         {% endif %}
  22.                     </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.                     <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>
  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.                     <div>
  37.                         <a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
  38.                             <div class="responsiveImageProduit">
  39.                                 <img src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">
  40.                             </div>
  41.                         </a>
  42.                     </div>
  43.                     <div class="link-product-stock-mobile mt-3 mb-4">
  44.                         {% if prod.stock <= 0 %}
  45.                             <div class="button-show-detail-red">
  46.                                 <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>
  47.                             </div>
  48.                         {% else %}
  49.                             <div class="button-show-detail">
  50.                                 <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>
  51.                             </div>
  52.                         {% endif %}
  53.                         <div class="no-wrap">
  54.                             <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>
  55.                         </div>
  56.                         {#                                        {% if prod.stock <= 0 %}#}
  57.                         {#                                            <p class="text-red-stock-mobile pt-2">{% trans %}Bientôt en stock{% endtrans %}</p>#}
  58.                         {#                                        {% endif %}#}
  59.                     </div>
  60.                 </div>
  61.             </div>
  62.         </div>
  63.     {% endfor %}
  64. {% endfor %}