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