{% extends 'other_admin/custom_admin_base.html' %}
{% load static %}
{% block m-title %}LISTE DES APPRENANTS{% endblock m-title %}
{% block content %}
<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        LISTE DES APPRENANTS
       <!-- <a href="{% url 'EspaceEnseignant:etudiant_inscrit_export' %}" target="_blank" class="btn btn-success btn-sm" style="float:right;margin-left:5px;"><i class="fas fa-upload"></i> Export la liste des inscri</a> -->
        <button data-toggle="modal" data-target="#import_note" class="btn btn-primary btn-sm" style="float:right;"><i class="fas fa-plus"></i> Ajouter</button>
        {% include 'other_admin/etudiant/modal_etudiant_import.html' %}
    </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>NCE</th>
                    <th>NOM</th>
                    <th>PRENOMS</th>
                    <th>EMAIL</th>
                    <th></th>
                </tr>
                </thead>
                <tfoot>
                <tr>
                    <th>NCE</th>
                    <th>NOM</th>
                    <th>PRENOMS</th>
                    <th>EMAIL</th>
                    <th></th>
                </tr>
                </tfoot>
                <tbody>
                {% for etudiant in page_obj %}
                    <tr>
                        <td><strong>{{ etudiant.nce }}</strong></td>
                        <td>{{ etudiant.nom }}</td>
                        <td>{{ etudiant.prenoms }}</td>
                        <td>{{ etudiant.email }}</td>
                        <td>
                            <a type="button" class="btn btn-primary btn-sm " href="{% url 'BasicData:etudiant_edit' etudiant.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>
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}