{% extends 'base.html.twig' %}{% block title %} Produits d'entretien - {{ parent() }} {# prepend #}{% endblock %}{% block body %}<div class="page"> {# screen > entete page - img small #} <div class="entete-page entete-bg" style="background-image: url({{ asset('build/images/fond-cover-design-vide.png') }});"> <div class="relative text-center mt-50" style="z-index: 10;"> <h1 class="typo-white typo-250"> <span class="">Produits d'entretien </span> <br><span class="typo-principale-light-italic typo-70">Préparer / Protéger / Maintenir</span> </h1> </div> <div class="overlay fond-cover-animate-neon"></div> </div> <div class="full-container"> <div class="container pa-20 pb-20"> <h2> <span class="typo-perso-rouge">{{ count_all_products }} produit{% if count_all_products > 1 %}s{% endif %}</span> {% if is_mobile %} <br><span class="typo-90"> {% endif %} {% if filter_title is defined %} <span class="typo-principale-light">dans</span> <span class="typo-principale-bold-italic typo-gray-900">{{ filter_title.action }}</span> {% if filter_title.category %} <span class="typo-principale-light">et</span> <span class="typo-principale-bold-italic typo-perso-bleu-moyen">{{ filter_title.category }}</span> {% endif %} {% else %} <span class="typo-principale-light">dans le catalogue</span> {% endif %} {% if is_mobile %} </span> {% endif %} </h2> <div class="mt-20"> <a href="" class="showThis badge badge-large badge-white badge-border majuscule" data-target="#filters">Filtrer </a> <div id="filters" class="clear pa-20 {% if filter_title is not defined %}hidden{% endif%} fond-perso-bleu-clair"> <div class="fr"><a href="" data-target="#filters" class="hideThis"><i class="icon icon-remove typo-150"></i></a></div> {% for filter in filters %} <div class="fl width-200 mb-10"> <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> <div class="mt-10 ml-10"> {% for category in filter.categories %} <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) }) }}"> {{ category.category.name }} ({{ category.count }}) </a><br> {% endfor %} </div> </div> {% endfor %} <div class="clear separation-10"></div> </div> <div class="clear separation-10"></div> </div> <div class="mt-20"> {% if products | length > 0 %} {% for product in products %} {# Aperçu produit #} {% include 'main/content/_short_product.html.twig' %} {% endfor %} <div class="mt-20"> {{ knp_pagination_render(products, 'partials/pagination.html.twig') }} </div> {% else %} <div class="fond-white border-gray-300 pa-20"> <div class="clear separation-20"></div> <a href="{{ path('admin_products_new') }}" class="big-btn big-btn-border">Ajouter votre premier produit</a> <div class="clear separation-20"></div> </div> <div class="height-500"></div> {% endif %} <div class="separation-30"></div> </div> </div></div>{% endblock %}