themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Index/_main.html.twig line 1

Open in your IDE?
  1. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  2. {% import '@SyliusShop/Common/Macro/pagination.html.twig' as pagination %}
  3.  
  4. {% if resources.data|length > 0 %}
  5.     <div class="categ-bottom">
  6.         <div class="res-filtre">
  7.             <strong class="nbre-article">{{resources.data|length}} {{'app.taxon.articles' |trans}} </strong>
  8.             <span>Votre séléction :</span>
  9.             <span class="filtre"><a href="#">Halal</a></span><span class="filtre"><a href="#">test</a></span>
  10.             
  11.         </div>
  12.         <div class="liste-articles">
  13.             <div class="row-article clear-float" {{ sylius_test_html_attribute('products') }}>
  14.             
  15.                 {% for product in resources.data %}
  16.                     <div class="col-20-top">
  17.                         {% include '@SyliusShop/Product/_box.html.twig' %}
  18.                     </div>
  19.                 {% endfor %}
  20.             </div>
  21.         </div>
  22.     </div>
  23.     {{ sylius_template_event('sylius.shop.product.index.before_pagination', {'products': resources.data}) }}
  24.     <div class="d-flex justify-content-end mt-3">
  25.         {{ pagination.simple(resources.data) }}
  26.     </div>
  27. {% else %}
  28.     <div class="mt-3">
  29.     {{ messages.info('sylius.ui.no_results_to_display') }}
  30.     </div>
  31. {% endif %}