templates/user/list.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/backEndLayout.html.twig' %}
  2. {% block title %}Liste des enseignants de {{get_env("FRENCH_SCHOOL_NAME")|raw }}   
  3. {% endblock  title %}
  4. {% block content %}
  5.   
  6.     
  7.         <div class="row mt-4">
  8.            
  9.             <div class="col-11 jumbotron" >
  10.                 <div class="m-1 box-shadow">
  11.                     <div class="card-header ">
  12.                                 <div class=" d-flex justify-content-between " role="group" >
  13.                                          <h4 class="my-0 font-weight-normal text-center text-justify text-uppercase"> Liste des utilisateurs (administrateurs et enseignants)  </h4>
  14.                                         <a class="btn btn-outline-primary " target="_blank" href="{{ path('admin_teacher_list') }}">
  15.                                             <i class="fa fa-print" aria-hidden="true">
  16.                                                 &nbsp; 
  17.                                             </i>
  18.                                         </a>
  19.                                </div>          
  20.                     </div>
  21.                     <table  width="100%" class="table table-striped">
  22.                          <thead>
  23.                             <tr>
  24.                         
  25.                                 <th style="width:15%;" scope="col">Nom complet </th>
  26.                                 <th style="width:10%;" scope="col">Domaine</th>
  27.                                 <th style="width:2%;" scope="col">Sexe</th>
  28.                                 <th style="width:6%;" scope="col">Email</th>
  29.                                 <th style="width:16%;" scope="col">Date de naissance</th>
  30.                                 <th style="width:10%;" scope="col">Lieu de naissance</th>
  31.                                 <th style="width:13%;" scope="col">RĂ©sidence</th>
  32.                                 <th style="width:15%;" scope="col">Contact</th>
  33.                                 <th style="width:8%;" scope="col">Action</th>
  34.                             </tr>
  35.                         </thead>
  36.                         <tbody>
  37.                             {% for user in users %}
  38.                                 <tr>
  39.                                 
  40.                                     <td>{{ user.fullName }}</td>
  41.                                     <td>{{ user.domain }}</td>
  42.                                     <td>{% if user.gender == 0  %} M {% else %} F {% endif %}</td>
  43.                                     <td>{{ user.email }}</td>
  44.                                     <td>{% if user.birthday %}{{ user.birthday|date('Y-m-d') }}{% endif %}</td>
  45.                                     <td>{{ user.birthplace }}</td>
  46.                                     <td>{{ user.location }}</td>
  47.                                     <td> {{ user.phoneNumber}} </td>
  48.                                     <td>
  49.                                         <div class="btn-group">
  50.                                             <a class="btn btn-outline-warning btn-sm" href="{{ path('admin_users_edit', {id: user.id}) }}">
  51.                                                 <i class="fa fa-edit"></i>
  52.                                             </a>
  53.                                              <a class="btn btn-outline-primary btn-sm" href="{{ path('admin_users_toggle', {id: user.id}) }}">
  54.                                              {% if user.isVerified == 1 %}
  55.                                                  <i class="fa fa-thumbs-o-down" aria-hidden="true"></i> 
  56.                                              {% else %} 
  57.                                                  <i class="fa fa-thumbs-up" aria-hidden="true"></i> 
  58.                                              {% endif %} 
  59.                                                
  60.                                             </a>
  61.                                         </div>
  62.                                     </td>
  63.                                 </tr>
  64.                             {% endfor %}
  65.                         </tbody>
  66.                     </table>
  67.                 </div>
  68.             </div>
  69. {% endblock %}