themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Brand/Product/index.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  3. {% block title %}{{ 'sylius.ui.products'|trans }} | {{ parent() }}{% endblock %}
  4. {% block content %}
  5.     <div class="max-categ-container p-0">
  6.         {% block breadcrumb %}
  7.             {% include '@SyliusShop/Brand/Product/Index/_breadcrumb.html.twig' with { 'brand' : brand } %}
  8.         {% endblock %}
  9.         <div class="bg-white p-2 p-md-3 my-2 my-md-3">
  10.             {% include '@SyliusShop/Brand/Product/Index/_header.html.twig' with { 'brand' : brand } %}
  11.         </div>
  12.         {% if products|length > 0 %}
  13.             <div class="row mx-n2 mx-lg-n3p mx-xs-n2" >
  14.                 {% for product in products %}
  15.                     <div class="col-lg-3 col-md-4 col-6 px-2 mb-md-3 mb-4 px-lg-3p mb-lg-5p px-xs-2">{% include '@SyliusShop/Product/_box.html.twig' with {'product': product} only %}</div>
  16.                 {% endfor %}
  17.             </div>
  18.         {% else %}
  19.             <div class="text-center pt-3"><div class="d-inline-block">{{ messages.info('app.common.no_product_available') }}</div></div>
  20.         {% endif %}
  21.     </div>
  22. {%  endblock %}