{% extends 'layout/backEndLayout.html.twig' %}
{% block title %}Liste des enseignants de {{get_env("FRENCH_SCHOOL_NAME")|raw }}
{% endblock title %}
{% block content %}
<div class="row mt-4">
<div class="col-11 jumbotron" >
<div class="m-1 box-shadow">
<div class="card-header ">
<div class=" d-flex justify-content-between " role="group" >
<h4 class="my-0 font-weight-normal text-center text-justify text-uppercase"> Liste des utilisateurs (administrateurs et enseignants) </h4>
<a class="btn btn-outline-primary " target="_blank" href="{{ path('admin_teacher_list') }}">
<i class="fa fa-print" aria-hidden="true">
</i>
</a>
</div>
</div>
<table width="100%" class="table table-striped">
<thead>
<tr>
<th style="width:15%;" scope="col">Nom complet </th>
<th style="width:10%;" scope="col">Domaine</th>
<th style="width:2%;" scope="col">Sexe</th>
<th style="width:6%;" scope="col">Email</th>
<th style="width:16%;" scope="col">Date de naissance</th>
<th style="width:10%;" scope="col">Lieu de naissance</th>
<th style="width:13%;" scope="col">RĂ©sidence</th>
<th style="width:15%;" scope="col">Contact</th>
<th style="width:8%;" scope="col">Action</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.fullName }}</td>
<td>{{ user.domain }}</td>
<td>{% if user.gender == 0 %} M {% else %} F {% endif %}</td>
<td>{{ user.email }}</td>
<td>{% if user.birthday %}{{ user.birthday|date('Y-m-d') }}{% endif %}</td>
<td>{{ user.birthplace }}</td>
<td>{{ user.location }}</td>
<td> {{ user.phoneNumber}} </td>
<td>
<div class="btn-group">
<a class="btn btn-outline-warning btn-sm" href="{{ path('admin_users_edit', {id: user.id}) }}">
<i class="fa fa-edit"></i>
</a>
<a class="btn btn-outline-primary btn-sm" href="{{ path('admin_users_toggle', {id: user.id}) }}">
{% if user.isVerified == 1 %}
<i class="fa fa-thumbs-o-down" aria-hidden="true"></i>
{% else %}
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
{% endif %}
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}