templates/newwebfront/prestation.html.twig line 1

Open in your IDE?
  1. {% extends 'newwebfront/index.html.twig' %}
  2. {% block title %} Actualités {% endblock title %} 
  3. {% block content %}
  4. <!-- Page Title -->
  5.         <section class="page-title" style="background-image: url(assets/images/background/page-title.jpg);">
  6.             <div class="auto-container">
  7.                 <div class="content-box">
  8.                     <div class="title centred">
  9.                         <h1 style="color : #FFD400;">Services aux usagers</h1>
  10.                     </div>
  11.                     <ul class="bread-crumb clearfix">
  12.                         <li><a href="{{ path('newfront') }}">Accueil</a></li>
  13.                         <li>Services aux usagers</li>
  14.                     </ul>
  15.                 </div>
  16.             </div>
  17.         </section>
  18.         <!-- End Page Title -->
  19.         <!-- faq-section -->
  20.         <section class="faq-section sec-pad">
  21.             <div class="auto-container">
  22.                 <div class="row clearfix">
  23.                     <div class="col-lg-4 col-md-12 col-sm-12 content-column">
  24.                         <div class="content_block_8">
  25.                             <div class="content-box">
  26.                                 <div class="sec-title">
  27.                                     <h6><i class="flaticon-star"></i><span>Services rendus aux usagers</span></h6>
  28.                                     <h2>Découvrez ici la liste des <br />services rendus aux usagers</h2>
  29.                                     <div class="title-shape"></div>
  30.                                 </div>
  31.                                 <div class="text">
  32.                                     <p>Pour toutes préoccupations ou informations complémentaires, n'hésitez pas à nous contacter.</p>
  33.                                     <a href="{{ path('contact') }}">Ecrivez nous !<i class="flaticon-right-arrow"></i></a>
  34.                                 </div>
  35.                             </div>
  36.                         </div>
  37.                     </div>
  38.                     <div class="col-lg-8 col-md-12 col-sm-12 faq-column">
  39.                         {% set num = 1 %}
  40.                     
  41.                         <ul class="accordion-box">
  42.                             {% for service in services.data %}
  43.                                 {% if service.id is not null %}
  44.                                     <li class="accordion block">
  45.                                         <div class="acc-btn">
  46.                                             <div class="icon-outer"></div>
  47.                                             <h5><span> {{num}}. </span>{{ service.getNomService()}}</h5>
  48.                                         </div>
  49.                                         <div class="acc-content">
  50.                                             <div class="text">
  51.                                                 <p><b>Service fournit par : {{ service.getDirection() }}</b></p>
  52.                                                 <p>{{ service.getDescriptionService()|raw }}</p>
  53.                                             </div>
  54.                                         </div>
  55.                                     </li>
  56.                                 {% endif %}
  57.                                 {% set num = num + 1 %}
  58.                             {% endfor %}
  59.                         </ul>
  60.                     </div>
  61.                 </div>
  62.             </div>
  63.         </section>
  64.         <!-- faq-section end -->
  65.         {# Gestion de la pagination #}
  66.         {% set path = 'prestation'%}
  67.         {% set pages = services.pages %}
  68.         {% set currentPage = services.page %}
  69.         
  70.         
  71.         {% if pages > 1 %}
  72.             <div class="pagination-wrapper centred">
  73.                 <ul class="pagination clearfix">
  74.                         {% if (currentPage > 1) %}
  75.                             <li><a href="{{path(path, {page : currentPage - 1})}}"><i class="far fa-angle-double-left"></i></a></li>
  76.                         {% else %}
  77.                             {# <li class="disabled"><a href="{{path(path, {category_name : category_name, page : currentPage - 1})}}"><i class="far fa-angle-double-left disabled"></i></a></li> #}
  78.                         {% endif %}
  79.                         {% for page in 1..pages %}
  80.                             <li><a href="{{path(path, {page : page })}}" class="{{( page == currentPage ) ? 'current' : ''}}">{{ page }}</a></li>
  81.                         {% endfor %}
  82.                         {% if (currentPage < pages) %}
  83.                             <li><a href="{{path(path, {page : currentPage + 1})}}"><i class="far fa-angle-double-right"></i></a></li>
  84.                         {% else %}
  85.                             {# <li class="disabled"><a href="{{path(path, {category_name : category_name, page : currentPage + 1})}}"><i class="far fa-angle-double-right disabled"></i></a></li> #}
  86.                         {% endif %}      
  87.                 </ul>
  88.             </div>
  89.         {% endif %}
  90. {% include "newwebfront/_footercard.html.twig" %}
  91. {% endblock content %}