templates/app/Group/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     {{ encore_entry_link_tags('app-group-index') }}
  5. {% endblock %}
  6. {% block page_container %}
  7.     <div class="page-wrapper section-content-group">
  8.       {% include 'app/base/breadcrumb.html.twig' with {'group': group, 'fontSize': '16'} %}
  9.     </div>
  10.     <section class="page-wrapper">
  11.         {% if group|default(0) %}
  12.             <article class="group-index h-auto">
  13.                 {% if products|default(0) %}
  14.                     <section class="group-product-cards col-sm-12 pl-0 pr-0 {% if not is_mobile() %}row{% endif %} ">
  15.                         {% include 'app/Group/products.html.twig' with {"products": products, "group": group} %}
  16.                     </section>
  17.                 {% elseif group.children|default(0) %}
  18.                     <section class="group-cards col-sm-12 col-xs-12 pl-0 pr-0">
  19.                         {% include 'app/Group/children.html.twig' with {"groups": group.children} %}
  20.                     </section>
  21.                 {% else %}
  22.                     <div class="group-box">
  23.                         <div class="group-content">
  24.                             <h2 class="ff-os-regular ct-blue group-empty">{{ "group.empty"|trans }}</h2>
  25.                         </div>
  26.                     </div>
  27.                 {% endif %}
  28.             </article>
  29.         {% else %}
  30.             <div class="group-box">
  31.                 <div class="group-content">
  32.                     <h2 class="ff-os-regular ct-blue group-empty">{{ "group.empty"|trans }}</h2>
  33.                 </div>
  34.             </div>
  35.         {% endif %}
  36.     </section>
  37. {% endblock %}