templates/pages/faq.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block page_contents %}
  3. <section class="section section-page-title bg-gradient py-xl-5 py-4" data-aos='fade-down'>
  4.   <div class="container">
  5.     <div class="row">
  6.       <div class="col-12 text-center text-white">
  7.         <h1 class="page-name font-weight-bold my-2">{% trans %}FAQ : réponses aux questions fréquentes{% endtrans %}</h1>
  8.       </div>
  9.     </div>
  10.   </div>
  11. </section>
  12. <section class="section section-faq py-4" data-aos='fade-up'>
  13.   <div class="container">
  14.     <div class="row">
  15.       <div class="col-xl-10 mx-auto">
  16.         <div id="accordionFaq" class="accordion pb-4">
  17.           {% if topics %}
  18.             {% for i,topic in topics %}
  19.               {% if topic.faqs %}
  20.                 <div class="group-header font-weight-bold text-purple font-30">{{ topic.title }}</div>
  21.                 {% for j,faq in topic.faqs %}
  22.                   <div class="card cart-{{ faq.id }}">
  23.                     <div class="card-header {{ i == 0 and j == 0 ? 'active' : '' }}" id="headingFaq{{ faq.id }}">
  24.                       <h5 class="mb-0">
  25.                         <button class="btn btn-link" data-toggle="collapse" data-target="#collapseFaq{{ faq.id }}" aria-expanded="true" aria-controls="collaFaq{{ faq.id }}">{{ faq.question }}</button>
  26.                       </h5>
  27.                     </div>
  28.                     <div id="collapseFaq{{ faq.id }}" class="collapse {{ i == 0 and j == 0 ? 'show' : '' }}" aria-labelledby="headingFaq{{ faq.id }}" data-parent="#accordionFaq">
  29.                       <div class="card-body">
  30.                         {{ faq.answer|raw }}
  31.                       </div>
  32.                     </div>
  33.                   </div>
  34.                 {% endfor %}
  35.               {% endif %}
  36.             {% endfor %}
  37.           {% endif %}
  38.         </div>
  39.       </div>
  40.     </div>
  41.   </div>
  42. </section>
  43. {% endblock %}