templates/main/page-produits-entretien.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     Produits d'entretien - {{ parent() }}  {# prepend #}
  4. {% endblock %}
  5. {% block body %}
  6. <div class="page">
  7.     {# screen > entete page - img small #}
  8.     <div class="entete-page entete-bg" style="background-image: url({{ asset('build/images/fond-cover-design-vide.png') }});">
  9.         <div class="relative text-center mt-50" style="z-index: 10;">
  10.             <h1 class="typo-white typo-250">
  11.                 <span class="">Produits d'entretien </span>
  12.                 <br><span class="typo-principale-light-italic typo-70">Préparer / Protéger / Maintenir</span>
  13.             </h1>
  14.         </div>
  15.         <div class="overlay fond-cover-animate-neon"></div>
  16.     </div>
  17.     <div class="full-container">
  18.         <div class="container pa-20 pb-20">
  19.             <h2>
  20.                 <span class="typo-perso-rouge">{{ count_all_products  }} produit{% if count_all_products > 1 %}s{% endif %}</span>
  21.                 {% if is_mobile %}
  22.                     <br><span class="typo-90">
  23.                 {% endif %}
  24.                 {% if filter_title is defined %}
  25.                     <span class="typo-principale-light">dans</span> <span class="typo-principale-bold-italic typo-gray-900">{{ filter_title.action }}</span>
  26.                     {% if filter_title.category %}
  27.                         <span class="typo-principale-light">et</span> <span class="typo-principale-bold-italic typo-perso-bleu-moyen">{{ filter_title.category }}</span>
  28.                     {% endif %}
  29.                 {% else %}
  30.                     <span class="typo-principale-light">dans le catalogue</span>
  31.                 {% endif %}
  32.                 {% if is_mobile %}
  33.                     </span>
  34.                 {% endif %}
  35.             </h2>
  36.             <div class="mt-20">
  37.                 <a href="" class="showThis badge badge-large badge-white badge-border majuscule" data-target="#filters">Filtrer </a>
  38.                 <div id="filters" class="clear pa-20 {% if filter_title is not defined %}hidden{% endif%} fond-perso-bleu-clair">
  39.                     <div class="fr"><a href="" data-target="#filters" class="hideThis"><i class="icon icon-remove typo-150"></i></a></div>
  40.                     {% for filter in filters %}
  41.                         <div class="fl width-200 mb-10">
  42.                             <a class="badge badge-large badge-gray-900 majuscule" href="{{ path('produits-entretien-filters', {'a_slug':(filter.action.slug), 'cat_slug':'all' }) }}">{{ filter.action.name }} ({{ filter.count }})</a>
  43.                             <div class="mt-10 ml-10">
  44.                                 {% for category in filter.categories %}
  45.                                     <a class="badge badge-large badge-white typo-gray-900 majuscule" href="{{ path('produits-entretien-filters', {'a_slug':(filter.action.slug), 'cat_slug':(category.category.slug) }) }}">
  46.                                         {{ category.category.name }} ({{ category.count }})
  47.                                     </a><br>
  48.                                 {% endfor %}
  49.                             </div>
  50.                         </div>
  51.                     {% endfor %}
  52.                     <div class="clear separation-10"></div>
  53.                 </div>
  54.                 <div class="clear separation-10"></div>
  55.             </div>
  56.             <div class="mt-20">
  57.                 {% if products | length > 0 %}
  58.                     {% for product in products %}
  59.                         {# Aperçu produit #}
  60.                         {% include 'main/content/_short_product.html.twig' %}
  61.                     {% endfor %}
  62.                     <div class="mt-20">
  63.                         {{ knp_pagination_render(products, 'partials/pagination.html.twig') }}
  64.                     </div>
  65.                 {% else %}
  66.                     <div class="fond-white border-gray-300 pa-20">
  67.                         <div class="clear separation-20"></div>
  68.                         <a href="{{ path('admin_products_new') }}" class="big-btn big-btn-border">Ajouter votre premier produit</a>
  69.                         <div class="clear separation-20"></div>
  70.                     </div>
  71.                     <div class="height-500"></div>
  72.                 {% endif %}
  73.             <div class="separation-30"></div>
  74.         </div>
  75.     </div>
  76. </div>
  77. {% endblock %}