templates/pages/privado/ajustes/faqs/faq_page_list.html.twig line 1

Open in your IDE?
  1. {% extends '/pages/privado/internal_base.html.twig' %}
  2. {% block subBarContent %}
  3.     
  4. {% endblock %}
  5. {% block internal_body %}
  6.     <div id="kt_content_container" class="d-flex flex-column-fluid align-items-start container-xxl mt-15">
  7.         <div class="content flex-row-fluid" id="kt_content">
  8.             {% set cats = app_faq_cat() %}
  9.             {% if cats | length > 0 %}     
  10.             <div class="card">
  11.                 <div class="card-body p-lg-15">
  12.                     <div class="mb-15">
  13.                         <h4 class="fs-2x text-gray-800 w-bolder mb-6">{{ 'faq.page.seo.title'| trans({}, 'faq') }}</h4>
  14.                         <div class="row mt-3">
  15.                         {% for cat in cats %}
  16.                             <div class="col-lg-3 col">
  17.                                 <a href="#cat_{{loop.index0}}" class="btn btn-lg btn-primary w-100 mb-5">
  18.                                     {{ cat.getFaqCategoriaTag(cat.getFaqCategoriaText()| trans({}, 'faq')) | raw }}
  19.                                 </a>
  20.                             </div>
  21.                         {% endfor %}
  22.                         </div>
  23.                     </div>
  24.                     {% for cat in cats %}
  25.                     {% set index = loop.index0 %}
  26.                     <div class="row mb-12">
  27.                         <div class="col-12">
  28.                             <h2 id="cat_{{index}}"class="text-gray-800 fw-bolder mb-4">{{ cat.getFaqCategoriaTag(cat.getFaqCategoriaText()| trans({}, 'faq')) | raw }}</h2>
  29.                             {% set faqs = app_faq_find(cat.FaqCategoria) %}
  30.                             {% if faqs | length > 0 %}
  31.                                 {% for faq in faqs %}
  32.                                     <div class="m-0">
  33.                                         <div class="d-flex align-items-center collapsed collapsible py-3 toggle mb-0" data-bs-toggle="collapse" data-bs-target="#cat_{{index}}_faq_{{loop.index0}}" aria-expanded="false">
  34.                                             <div class="btn btn-sm btn-icon mw-20px btn-active-color-primary me-5">
  35.                                                 <span class="svg-icon toggle-on svg-icon-primary svg-icon-1">
  36.                                                     <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
  37.                                                         <rect opacity="0.3" x="2" y="2" width="20" height="20" rx="5" fill="black" />
  38.                                                         <rect x="6.0104" y="10.9247" width="12" height="2" rx="1" fill="black" />
  39.                                                     </svg>
  40.                                                 </span>
  41.                                                 <span class="svg-icon toggle-off svg-icon-1">
  42.                                                     <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
  43.                                                         <rect opacity="0.3" x="2" y="2" width="20" height="20" rx="5" fill="black" />
  44.                                                         <rect x="10.8891" y="17.8033" width="12" height="2" rx="1" transform="rotate(-90 10.8891 17.8033)" fill="black" />
  45.                                                         <rect x="6.01041" y="10.9247" width="12" height="2" rx="1" fill="black" />
  46.                                                     </svg>
  47.                                                 </span>
  48.                                             </div>
  49.                                             <h4 class="text-gray-700 fw-bolder cursor-pointer mb-0">{{faq.FaqTitulo}}</h4>
  50.                                         </div>
  51.                                         <!--end::Heading-->
  52.                                         <!--begin::Body-->
  53.                                         <div id="cat_{{index}}_faq_{{loop.index0}}" class="collapse fs-6 ms-1">
  54.                                             <div class="mb-4 text-gray-600 fw-bold fs-6 ps-10">{{faq.FaqContenido | raw}}</div>
  55.                                         </div>
  56.                                         <div class="separator separator-dashed"></div>
  57.                                     </div>
  58.                                 {% endfor %}
  59.                             {% endif %}
  60.                         </div>
  61.                     </div>
  62.                     {% endfor %}
  63.                 </div>
  64.             </div>
  65.             {% endif %}
  66.         </div>
  67.     </div>
  68. {% endblock %}