{% extends 'dg_ufr/base_ufr.html' %}
{% load static %}
{% block content %}
<section class="content">
    <div class="container-fluid">
        <!-- Small boxes (Stat box)-->
        {% include "dg_ufr/parts/stats.html" %}
    </div>
  </section><br/>


<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        LISTE DES ENSEIGNANTS
    </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</th>
                    <th>Prénoms</th>
                    <th>Téléphone</th>
                    <th>Action</th>
                </tr>
                </thead>
                <tfoot>
                <tr>
                     <th>Nom</th>
                    <th>Prénoms</th>
                    <th>Téléphone</th>
                    <th>Action</th>
                </tr>
                </tfoot>
                <tbody>
                {% for enseignants in page_obj %}
                <tr>
                    <td>{{enseignants.nom}}</td>
                    <td>{{enseignants.prenoms}}</td>
                    <td>{{enseignants.phone}}</td>
                    <td style="width:160px;">
                      <a class="btn btn-primary btn-sm text-white" href="{% url 'EspaceEnseignant:add_ecue' enseignants.id %}"><i class="fa fa-plus"></i> matière</a>
                      <a class="btn btn-primary btn-sm text-white" href="{% url 'EspaceEnseignant:dr_ecue_infos' enseignants.id %}"><i class="fa fa-eye"></i> voir</a>
                    </td>
                </tr>
              {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}