{% extends 'other_admin/custom_admin_base.html' %}
{% load static %}
{% block m-title %}LISTE DES ENSEIGNANTS{% endblock m-title %}
{% block content %}
<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        LISTE DES ENSEIGNANTS
        <a href="{% url 'BasicData:enseignant_add' %}" style="float:right;margin:2px;" class="btn btn-primary btn-sm" ><i class="fa fa-plus"></i> Ajouter</a>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered table-striped" id="dataTable" width="100%" cellspacing="0">
                <thead>
                <tr>
                    <th>NOM & PRENOMS</th>
                    <th>EMAIL</th>
                    <th></th>
                </tr>
                </thead>
                <tfoot>
                <tr>
                    <th>NOM & PRENOMS</th>
                    <th>EMAIL</th>
                    <th></th>
                </tr>
                </tfoot>
                <tbody>
                {% for item in page_obj %}
                    <tr>
                        <td>{{ item }}</td>
                        <td>{{ item.email }}</td>
                        <td width="180">
                            <a type="button" class="btn btn-primary btn-sm " href="{% url 'BasicData:enseignant_edit' item.id  %}" ><i class="fa fa-edit" title="modifier"></i></a>
                           <!-- <a type="button" class="btn btn-danger btn-sm" href="#"><i class="fa fa-trash" title="supprimer"></i></a> -->
                            <a type="button" class="btn btn-secondary btn-sm " href="{% url 'BasicData:enseignant_ufr_list' item.id  %}" ><i class="fa fa-eye" title="modifier"></i> ETABLISSEMENT</a>
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>

{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}