templates/FO/FO/home.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {% block title %}Accessoires 4x4 & Equipements Off Road {% endblock %}
  3. {% block body %}
  4.             <!-- page content -->
  5.             <div class="right_col" role="main" style="padding-left : 0px;padding-right:0px !important;">
  6.                 <!-- top tiles -->
  7.                 <div class="row" style="margin-right:0px;">
  8.                     {% if carrousel|length > 0 %}
  9.                         <div id="carouselDesktop" class="carousel slide d-none d-md-block" data-ride="carousel">
  10.                             <ol class="carousel-indicators">
  11.                                 {% for c in carrousel %}
  12.                                     <li data-target="#carouselDesktop" data-slide-to="{{ loop.index0 }}" class="{% if loop.index0 == 0 %}active{% endif %}"></li>
  13.                                 {% endfor %}
  14.                             </ol>
  15.                             <div class="carousel-inner">
  16.                                 {% for c in carrousel %}
  17.                                     <div class="carousel-item {% if loop.first %}active{% endif %}">
  18.                                         {% set lien = c.lien %}
  19.                                         {% if c.articles != "" %}
  20.                                             {% set articles_cible = c.articles|json_decode %}
  21.                                             {% if articles_cible is not empty and articles_cible|length > 0 %}
  22.                                                 {% set lien = "/catalogue?" %}
  23.                                                 {% for article in articles_cible %}
  24.                                                     {% set lien = lien ~ 'p[]=' ~ article ~ '&' %}
  25.                                                 {% endfor %}
  26.                                                 {% set lien = lien|slice(0, -1) %}
  27.                                             {% endif %}
  28.                                         {% endif %}
  29.                                         {% if lien != "" %}
  30.                                         <a href="{{ lien }}">
  31.                                             {% endif %}
  32.                                             <img class="d-block w-100" src="/uploads/societe/carrousel/{{ c.url }}">
  33.                                             {% if lien != "" %}
  34.                                         </a>
  35.                                         {% endif %}
  36.                                     </div>
  37.                                 {% endfor %}
  38.                             </div>
  39.                         </div>
  40.                     {% endif %}
  41.                     {% if carrouselMobile|length > 0 %}
  42.                         <div id="carouselMobile" class="carousel slide d-md-none" data-ride="carousel">
  43.                             <ol class="carousel-indicators">
  44.                                 {% for c in carrouselMobile %}
  45.                                     <li data-target="#carouselMobile" data-slide-to="{{ loop.index0 }}" class="{% if loop.index0 == 0 %}active{% endif %}"></li>
  46.                                 {% endfor %}
  47.                             </ol>
  48.                             <div class="carousel-inner">
  49.                                 {% for c in carrouselMobile %}
  50.                                     <div class="carousel-item {% if loop.first %}active{% endif %}">
  51.                                         {% set lien = c.lien %}
  52.                                         {% if c.articles != "" %}
  53.                                             {% set articles_cible = c.articles|json_decode %}
  54.                                             {% if articles_cible is not empty and articles_cible|length > 0 %}
  55.                                                 {% set lien = "/catalogue?" %}
  56.                                                 {% for article in articles_cible %}
  57.                                                     {% set lien = lien ~ 'p[]=' ~ article ~ '&' %}
  58.                                                 {% endfor %}
  59.                                                 {% set lien = lien|slice(0, -1) %}
  60.                                             {% endif %}
  61.                                         {% endif %}
  62.                                         {% if lien != "" %}
  63.                                             <a href="{{ lien }}">
  64.                                         {% endif %}
  65.                                             <img class="d-block w-100" src="/uploads/societe/carrousel/{{ c.url }}">
  66.                                         {% if lien != "" %}
  67.                                             </a>
  68.                                         {% endif %}
  69.                                     </div>
  70.                                 {% endfor %}
  71.                             </div>
  72.                         </div>
  73.                     {% endif %}
  74.                 </div>
  75.                 {#
  76.                 <div class="row" style="margin-right:0px;">
  77.                     {% if 1==1 and carrousel|length > 0 %}
  78.                     <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  79.                         <ol class="carousel-indicators">
  80.                         {% for c in carrousel %}
  81.                             <li data-target="#carouselExampleIndicators" data-slide-to="{{ loop.index0 }}" class="{% if loop.index0 == 0 %}active{% endif %}"></li>
  82.                         {% endfor %}
  83.                         </ol>
  84.                         <div class="carousel-inner" role="listbox">
  85.                         {% for c in carrousel %}
  86.                         <div class="carousel-item {% if loop.index0 == 0 %}active{% endif %}">
  87.                             {% if c.lien != "" %}
  88.                                 <a href="{{ c.lien }}">
  89.                             {% endif %}
  90.                             <img class="d-block img-fluid w-100" src="/uploads/societe/carrousel/{{ c.url }}">
  91.                                 {% if c.lien != "" %}
  92.                                 </a>>
  93.                             {% endif %}
  94.                         </div>
  95.                         {% endfor %}
  96.                         </div>
  97.                     </div>
  98.                     {% endif %}
  99.                 </div>#}
  100.                 <style>
  101.                     /* Conteneur principal */
  102.                     .layout-row {
  103.                         display: flex;
  104.                         flex-wrap: nowrap;      /* par défaut sur desktop : tout sur une ligne */
  105.                         gap: 22px;              /* espace entre les éléments */
  106.                         padding: 22px;
  107.                         box-sizing: border-box;
  108.                         width: 100%;
  109.                         padding-right:0px;
  110.                     }
  111.                     /* Carrés génériques */
  112.                     .card-item {
  113.                         display: flex;
  114.                         justify-content: center;
  115.                         align-items: center;
  116.                         height: 150px;
  117.                         background-color: #4c4c4c;
  118.                         border: none;
  119.                         flex-shrink: 0;
  120.                     }
  121.                     /* Largeur des 3 carrés (50% divisé par 3 - gap) */
  122.                     .card1, .card2, .card3 {
  123.                         flex: 0 0 calc((50% - 2 * 22px)/3);
  124.                     }
  125.                     /* Rectangle : prend 50% restant */
  126.                     .card-rectangle {
  127.                         flex: 0 0 calc(50% - 22px);
  128.                         display: flex;
  129.                         justify-content: center;
  130.                         align-items: center;
  131.                         background-color: #4c4c4c;
  132.                         background-image: url('/images/operateur.png') !important;
  133.                         background-size: cover;
  134.                         background-position: top;
  135.                         background-repeat: no-repeat;
  136.                     }
  137.                     /* Texte interne */
  138.                     .card-content {
  139.                         display: block;
  140.                         text-align: center;
  141.                         color: #fbb911;
  142.                         font-weight: bold;
  143.                         font-size: 16px;
  144.                         line-height: 1.2;
  145.                     }
  146.                     .card-content a {
  147.                         color: #fbb911 !important;
  148.                         text-decoration: none;
  149.                         cursor: pointer;
  150.                     }
  151.                     .highlight {
  152.                         font-size: 1.6em;
  153.                         color: #fbb911;
  154.                     }
  155.                     .highlight-white {
  156.                         color: white;
  157.                     }
  158.                     /* Ligne de contact pour la carte 3 */
  159.                     .contact-line {
  160.                         width: 90%;
  161.                         text-align: center;
  162.                         margin: 2px 0;
  163.                     }
  164.                     /* Responsive mobile */
  165.                     @media (max-width: 767px) {
  166.                         .layout-row {
  167.                             flex-wrap: wrap;   /* autorise le retour à la ligne */
  168.                             padding: 0;        /* supprime le padding sur mobile */
  169.                             gap: 10px;         /* gap réduit pour éviter débordement */
  170.                             margin-top:10px;
  171.                             margin-bottom:10px;
  172.                         }
  173.                         /* Carré1 et carré2 côte à côte */
  174.                         .card1, .card2 {
  175.                             flex: 0 0 calc(50% - 5px);   /* 50% moins la moitié du gap */
  176.                             max-width: calc(50% - 5px);
  177.                         }
  178.                         /* Carré3 et rectangle empilés */
  179.                         .card3, .card-rectangle {
  180.                             flex: 0 0 100%;
  181.                             max-width: 100%;
  182.                         }
  183.                         .card-rectangle {
  184.                             flex: 0 0 100%;
  185.                             max-width: 100%;
  186.                             box-sizing: border-box;  /* inclut le padding/gap dans la largeur */
  187.                             height: 150px;           /* même hauteur que les autres cartes */
  188.                             display: block;          /* assure que le div est visible */
  189.                             background-size: cover;
  190.                             background-position: center;
  191.                             background-repeat: no-repeat;
  192.                         }
  193.                         .right_col {
  194.                             padding-left : 0px !important;
  195.                         }
  196.                     }
  197.                 </style>
  198.                 <div class="layout-row">
  199.                     <!-- Carré 1 -->
  200.                     <div class="card-item card1">
  201.                         <div class="card-content">
  202.                             références<br/>
  203.                             <span class="highlight">870 000</span><br/>
  204.                             dont <span class="highlight-white">95 000</span> en stock
  205.                         </div>
  206.                     </div>
  207.                     <!-- Carré 2 -->
  208.                     <div class="card-item card2">
  209.                         <div class="card-content">
  210.                             magasin<br/>
  211.                             <span class="highlight">7500 M2</span><br/>
  212.                             de <span class="highlight-white">surface</span>
  213.                         </div>
  214.                     </div>
  215.                     <!-- Carré 3 -->
  216.                     <div class="card-item card3">
  217.                         <div class="card-content">
  218.                             <span class="highlight-white">Une question ?</span><br/>
  219.                             <span class="highlight"><a href="tel:+33475851048" style="color:#fbb911;">04 75 85 10 48</a></span><br/>
  220.                             <a href="#" style="color:#fbb911;">contact@outback-import.fr</a>
  221.                         </div>
  222.                     </div>
  223.                     <!-- Rectangle -->
  224.                     <div class="card-rectangle">
  225.                         <div class="rectangle-content">
  226.                             <!-- Ici tu peux mettre image ou deux sous-éléments collés -->
  227.                         </div>
  228.                     </div>
  229.                 </div>
  230.                 <div class="row" style="padding-left:10px;margin-right:0px;">
  231.                     <div class="col-lg-12" style="padding-top:15px;background:#e5e5e5;border: 0px solid #f1f4f6;border-radius: 0px;">
  232.                         <ul class="stats-overview" style="border-bottom:0px;margin-bottom:0px;padding-left:0px;">
  233.                             <li class="dark">
  234.                                 <i class=" fa fa-credit-card" style="font-size :2em;"></i>
  235.                                 <div style="margin-top:5px;text-transform:uppercase;" class="">Paiements sécurisés</div>
  236.                             </li>
  237.                             <li class="dark">
  238.                                 <i class=" fa fa-gears" style="font-size :2em;"></i>
  239.                                 <div style="margin-top:5px;text-transform:uppercase;" class="">Garanties 2 ans</div>
  240.                             </li>
  241.                             <li class="dark">
  242.                                 <i class=" fa fa-truck" style="font-size :2em;"></i>
  243.                                 <div style="margin-top:5px;text-transform:uppercase;" class="">Livraison rapide</div>
  244.                             </li>
  245.                         </ul>
  246.                     </div>
  247.                 </div>
  248.                 <div class="row" style="margin-top:15px;padding-left:10px;margin-left:0px;padding-right:20px;background:white;margin-right:0px;">
  249.                     <div class="col-lg-7 " style="padding-left:0px;">
  250.                         <div class="container _x_panel recherche_catalogue" style="margin-top:15px;">
  251.                             <!-- Titre global du formulaire -->
  252.                             <h2 class="off form-title dark" >Recherche de pièces</h2>
  253.                             <script src="{{ asset('js_ep/moteur_recherche_article.js') }}"></script>
  254.                             <script>
  255.                                 $(document).ready(function(){
  256.                                     {% if parametres.mv is defined and parametres.mv != "" and parametres.mv != "0"  %}
  257.                                     var initialData = { id: {{parametres.mv}}, text: "{{parametres.mv_l}}", libelle: "{{parametres.mv_l}}" };
  258.                                     {% else %}
  259.                                     var initialData = { id: 0, text: "Marque", text: "Marque" };
  260.                                     {% endif %}
  261.                                     var option = new Option(initialData.text, initialData.id, true, true);
  262.                                     $selectMarqueVehicule.append(option).trigger('change');
  263.                                     {% if parametres.mov is defined and parametres.mov != "" and parametres.mov != "0"  %}
  264.                                     var initialData = { id: {{parametres.mov}}, text: "{{parametres.mov_l}}" };
  265.                                     {% else %}
  266.                                     var initialData = { id: 0, text: "Modèle"};
  267.                                     {% endif %}
  268.                                     var option = new Option(initialData.text, initialData.id, true, true);
  269.                                     $selectModeleVehicule.append(option).trigger('change');
  270.                                     {% if parametres.tv is defined and parametres.tv != "" and parametres.tv != "0" %}
  271.                                     var initialData = { id: {{parametres.tv}}, text: "{{parametres.tv_l}}" };
  272.                                     {% else %}
  273.                                     var initialData = { id: 0, text: "Type"};
  274.                                     {% endif %}
  275.                                     var option = new Option(initialData.text, initialData.id, true, true);
  276.                                     $selectTypeVehicule.append(option).trigger('change');
  277.                                     {% if parametres.m is defined and parametres.m != "" and parametres.m != "0" %}
  278.                                     var initialData = { id: {{parametres.m}}, text: "{{parametres.m_l}}" };
  279.                                     {% else %}
  280.                                     var initialData = { id: 0, text: "Marque" };
  281.                                     {% endif %}
  282.                                     var option = new Option(initialData.text, initialData.id, true, true);
  283.                                     $selectMarqueArticle.append(option).trigger('change');
  284.                                     {% if parametres.c is defined and parametres.c != "" and parametres.c != "0" %}
  285.                                     var initialData = { id: {{parametres.c}},  text: "{{parametres.c_l}}" };
  286.                                     {% else %}
  287.                                     var initialData = { id: 0, text: "Catégorie" };
  288.                                     {% endif %}
  289.                                     var option = new Option(initialData.text, initialData.id, true, true);
  290.                                     $selectCategorieArticle.append(option).trigger('change');
  291.                                     {% if parametres.cn2 is defined and parametres.cn2 != "" and parametres.cn2 != "0" %}
  292.                                     var initialData = { id: {{parametres.cn2}}, text: "{{parametres.cn2_l}}" };
  293.                                     {% else %}
  294.                                     var initialData = { id: 0, text: "Catégorie N2" };
  295.                                     {% endif %}
  296.                                     var option = new Option(initialData.text, initialData.id, true, true);
  297.                                     $selectCategorieArticleN2.append(option).trigger('change');
  298.                                     {% if parametres.cn3 is defined and parametres.cn3 != "" and parametres.cn3 != "0" %}
  299.                                     var initialData = { id: {{parametres.cn3}}, text: "{{parametres.cn3_l}}" };
  300.                                     {% else %}
  301.                                     var initialData = { id: 0, text: "Catégorie N3" };
  302.                                     {% endif %}
  303.                                     var option = new Option(initialData.text, initialData.id, true, true);
  304.                                     $selectCategorieArticleN3.append(option).trigger('change');
  305.                                 });
  306.                             </script>
  307.                             <form action="/catalogue"  id="searchForm" method="GET" style="padding-bottom:20px;">
  308.                                 <div class="form-container" style="margin-top:0px;">
  309.                                     <!-- Colonne gauche -->
  310.                                     <div class="form-column" style="padding:0;">
  311.                                         <div class="_off column-title"><i class="fa fa-car"></i> Véhicule</div>
  312.                                         <div class="form-group">
  313.                                            {#  <label for="marque">Marque</label> #}
  314.                                             <input type="hidden" id="mv_l" name="mv_l" value="{% if parametres.mv_l is defined and parametres.mv_l != ""  %}{{ parametres.mv_l }}{% endif %}">
  315.                                             <select id="dtc_marque_vehicule_select2" class="form-control" name="mv"></select>
  316.                                         </div>
  317.                                         <div class="form-group">
  318.                                             {# <label for="modele">Modèle</label> #}
  319.                                             <input type="hidden" id="mov_l" name="mov_l" value="{% if parametres.mv_l is defined and parametres.mv_l != ""  %}{{ parametres.mv_l }}{% endif %}">
  320.                                             <select class="form-control" id="dtc_modele_vehicule_select2" name="mov"></select>
  321.                                         </div>
  322.                                         <div class="form-group">
  323.                                             {# <label for="type">Type</label> #}
  324.                                             <input type="hidden" id="tv_l" name="tv_l" value="{% if parametres.tv_l is defined and parametres.tv_l != ""  %}{{ parametres.tv_l }}{% endif %}">
  325.                                             <select class="form-control" id="dtc_type_vehicule_select2" name="tv"></select>
  326.                                         </div>
  327.                                         {#
  328.                                         <div class="masquer_mobile animated flipInY orange" style="width:auto;margin-top:0px;">
  329.                                             <div class="tile-stats" style="margin-bottom:9px;padding:10px;padding-top:5px;padding-bottom:5px;background:#F7F7F7;padding-left :5px;">
  330.                                                 <div class="gauche" style="">
  331.                                                     <i style="font-size:3em;padding-right:10px;" class="  fa fa-dropbox"></i>
  332.                                                 </div>
  333.                                                 <div class="gauche text-left" style="padding-left:10px;padding-right:5px;line-height:1.25em;display:contents;">
  334.                                                     <div style="font-size:0.97em;padding-top:3px;" class="dark">Plus de 870 000 produits référencés dont plus de 95 000 en stock.</div>
  335.                                                 </div>
  336.                                             </div>
  337.                                         </div>
  338.                                         #}
  339.                                         <div class="_off column-title"><i class="fa fa-bars"></i> Catégories</div>
  340.                                         <div class="form-group">
  341.                                             {#<label for="cat1">Catégorie</label>#}
  342.                                             <input type="hidden" id="c_l" name="c_l" value="{% if parametres.c_l is defined and parametres.c_l != ""  %}{{ parametres.c_l }}{% endif %}">
  343.                                             <select class="form-control" id="dtc_categorie_article_n1_select2" name="c"></select>
  344.                                         </div>
  345.                                         <div class="form-group">
  346.                                             {#<label for="cat2">Catégorie N2</label>#}
  347.                                             <input type="hidden" id="cn2_l" name="cn2_l" value="{% if parametres.cn2_l is defined and parametres.cn2_l != ""  %}{{ parametres.cn2_l }}{% endif %}">
  348.                                             <select class="form-control" id="dtc_categorie_article_n2_select2" name="cn2"></select>
  349.                                         </div>
  350.                                         <div class="form-group">
  351.                                             {#<label for="cat3">Catégorie N3</label>#}
  352.                                             <input type="hidden" id="cn3_l" name="cn3_l" value="{% if parametres.cn3_l is defined and parametres.cn3_l != ""  %}{{ parametres.cn3_l }}{% endif %}">
  353.                                             <select class="form-control" id="dtc_categorie_article_n3_select2" name="cn3"></select>
  354.                                         </div>
  355.                                     </div>
  356.                                     <!-- Séparateur vertical -->
  357.                                     <div class="separator"></div>
  358.                                     <!-- Colonne droite -->
  359.                                     <div class="form-column" style="padding:0; display:flex; flex-direction:column;">
  360.                                         <div class="form-group">
  361.                                             <div class="_off column-title"><i class="fa fa-star"></i> Marque</div>
  362.                                             {# <label for="modele">Marque</label> #}
  363.                                             <input type="hidden" id="m_l" name="m_l" value="{% if parametres.m_l is defined and parametres.m_l != ""  %}{{ parametres.m_l }}{% endif %}">
  364.                                             <select class="form-control" id="dtc_marque_article_select2" name="m"></select>
  365.                                         </div>
  366.                                         <div class="_off column-title"><i class="fa fa-cubes"></i> Stock</div>
  367.                                         <div class="form-group row" style="margin-bottom:0px;">
  368.                                             <div class="col-md-12 col-sm-12">
  369.                                                 <label>
  370.                                                     <input type="checkbox" name="st" value="1" class="js-switch"  /> En stock uniquement
  371.                                                 </label>
  372.                                             </div>
  373.                                         </div>
  374.                                         <div class="form-group">
  375.                                             <div class="_off column-title"><i class="fa fa-search"></i> Recherche </div>
  376.                                            {#  <label for="keywords">Recherche <i class="fa fa-search"></i></label>#}
  377.                                             <input type="text" class="form-control" name="mc" placeholder="Entrez un mot clé">
  378.                                         </div>
  379.                                         <div class="btn-recherche-catalogue-reponsive btn-container" style="margin-top:auto;margin-bottom:15px;">
  380.                                             <button style="width:100%;margin-left:0px;" type="submit" class="btn btn-success"><i class="fa fa-search"></i> Lancer la recherche </button>
  381.                                         </div>
  382.                                     </div>
  383.                                 </div>
  384.                             </form>
  385.                         </div>
  386.                     </div>
  387.                     <style>
  388.                         .logo_img_nb {
  389.                               /* largeur max de l'image */
  390.                             max-height: 65px;
  391.                             margin-right: 10px;
  392.                              /* espace en bas pour quand elles passent à la ligne */
  393.                         }
  394.                         .parent_logo_nb {
  395.                             display: flex;
  396.                             align-items: center;         /* centre verticalement le contenu */
  397.                             justify-content: center;
  398.                             padding-top: 0px;
  399.                             padding-left: 0;
  400.                             padding-right: 0;
  401.                         }
  402.                         .images-wrapper {
  403.                             display: flex;
  404.                             flex-wrap: wrap;             /* permet aux images de passer à la ligne */
  405.                             justify-content: center;     /* centre les images horizontalement */
  406.                             gap: 5px;                   /* espace entre les images */
  407.                         }
  408.                     </style>
  409.                     <div class="parent_logo_nb col-lg-5 _text-center" style="padding-left:0px;padding-right:0px;padding-top:10px;">
  410.                         <div class="images-wrapper">
  411.                         {% if logosMarque|length > 0 %}
  412.                             {% for l in logosMarque %}
  413.                                 {% if l.logoNb != "" %}
  414.                                     <img class="logo_img_nb" style="" src="{{ asset('/uploads/logos/marques-nb/' ~ l.id ~ '/' ~ l.logoNb) | imagine_filter('H400x300') }}" alt="{{ l.libelle }}" title="{{ l.libelle }}">
  415.                                 {% endif %}
  416.                             {% endfor %}
  417.                         {% endif %}
  418.                         </div>
  419.                     </div>
  420.                 </div>
  421.                 {% set articles_plus = [] %}
  422.                 {% if app.user.client.id is defined %}
  423.                     {% set articles_plus = dtc_article.findRandomArticles(6,cat_produit_home,app.user.client.id) %}
  424.                 {% else %}
  425.                     {% set articles_plus = dtc_article.findRandomArticles(6,cat_produit_home,NULL) %}
  426.                 {% endif %}
  427.                 {% if articles_plus|length > 0 %}
  428.                 <div class="row justify-content-center" style="margin-top:15px;padding-left:10px;margin-right:0px;">
  429.                         {% for p in articles_plus %}
  430.                             <div class="col-lg-2 col-md-2 mb-3 col-6">
  431.                                 <div class="card suggestion-card">
  432.                                     {% set slug = dtc_article.getslugifArticle(p.id) %}
  433.                                     <a href="{{ path("dtc_article_afficher" , { 'id': p.id,'slug':slug }) }}">
  434.                                         {% set images = dtc_image_article.getImageDefaut(p.id) %}
  435.                                         {% if images[0] is defined %}
  436.                                             {# <img style="max-width:100%;" src="{{ asset(images[0].getUploadDir ~ '/' ~ p.id ~ '/' ~ images[0].url) | imagine_filter('400x300') }}" class="suggestion-img">#}
  437.                                             <img style="max-width:100%;" src="{{ url_image_distant }}/image/400/300/{{ images[0].ulid }}" class="suggestion-img">
  438.                                         {% else %}
  439.                                             <img style="max-width:100%;" src="{{ asset('images/defaut-img-product.jpg') }}" class="suggestion-img">
  440.                                         {% endif %}
  441.                                     </a>
  442.                                     <div class="p-2 text-center">
  443.                                         <div class="product-ref"><a href="{{ path("dtc_article_afficher" , { 'id': p.id,'slug':slug }) }}">Réf: {{ p.reference }}</a></div>
  444.                                         <strong> <a class="no-transform-text" href="{{ path("dtc_article_afficher" , { 'id': p.id,'slug':slug }) }}">{{ p.libelle }}</a></strong>
  445.                                         {% set remise = NULL %}
  446.                                         {% if app.user.id is defined and app.user.client.id is defined %}
  447.                                             {% set remise = dtc_article.getRemisesPossibleArticleClient({'article':p.id},app.user.client) %}
  448.                                         {% endif %}
  449.                                         {% if remise.remiseId is defined and remise.remiseId > 0 %}
  450.                                             <div style="margin-bottom:10px;">
  451.                                                 <div>
  452.                                                     <span class="old-price" style="font-size:1.2em;"><b>{{ p.prix_vente|price|raw }}&nbsp;€<span class="price-ttc">HT</span></b></span>
  453.                                                 </div>
  454.                                                 <div style="margin-top:5px;">
  455.                                                     <div class="discount" style="font-size:0.9em;display:inline;">Remise pro -{{ remise.valeur }}%</div>
  456.                                                 </div>
  457.                                                 <div style="margin-top:5px;">
  458.                                                     <span class=" new-price" style="font-size:1.2em;"><span style="font-size:1.4em;">{{ remise.prixRemise|price|raw }}&nbsp;€<span class="price-ttc">HT</span></span></span>
  459.                                                     <div class="both"></div>
  460.                                                 </div>
  461.                                             </div>
  462.                                             <div class="both"></div>
  463.                                         {% else %}
  464.                                             {% if app.user.id is defined  %}
  465.                                                 <p class="mb-0">{{ p.prix_vente|price|raw }}&nbsp;€ HT</p>
  466.                                             {% else %}
  467.                                                 {% set prix_ttc = dtc_article.getPrixVenteTtc(p.id) %}
  468.                                                 <p class="mb-0">{{ prix_ttc|price|raw }}&nbsp;&euro; TTC</p>
  469.                                             {% endif %}
  470.                                         {% endif %}
  471.                                         <div style="margin-top:10px;">
  472.                                             {% if app.user.id is defined  %}
  473.                                             <button data-id="{{ p.id }}" style="" class="btn-ajouter-panier btn btn-success btn-sm"><span class="fa fa-shopping-cart"></span> Ajouter</button>
  474.                                             {% else %}
  475.                                                 <a href="/login" class="btn btn-success btn-sm"><span class="fa fa-shopping-cart"></span> Ajouter</a>
  476.                                             {% endif %}
  477.                                         </div>
  478.                                     </div>
  479.                                 </div>
  480.                             </div>
  481.                         {% endfor %}
  482.                 </div>
  483.                 {% endif %}
  484.                     </div>
  485.                 </div>
  486.             </div>
  487.             <!-- /page content -->
  488. {% endblock %}