{% extends 'scolarite/ags_base.html' %}
{% load static %}
{% load custom_tag %}
{% load custom_tag_obj %}
{% block head %}{% endblock head %}
{% block page_title %}<!--({{ue.code}}) : {{ue.libelle}}--> {% endblock page_title %}
{% block content %}
<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        <a class="btn btn-primary btn-sm" style="color:#fff;"><i class="fa fa-users"></i> RE-INSCRIPTIONS EN ATTENTE ({{etudiants|length}})</a> |

        <a class="btn btn-info btn-sm" href="{% url 'Scolarite:ags_inscrits_list' %}"><i class="fa fa-users"></i> INSCRITS {{annee}} ({{ annee.id|etudiants_inscrits:'length'}})</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>No. Ins.</th>
                    <th>Nom et Prénoms</th>
                    <th>ETABLISSEMENT</th>
                    <th>Status</th>
                    <th></th>
                </tr>
                </thead>
                <tfoot>
                <tr>
                    <th>No. Ins.</th>
                    <th>Nom et Prénoms</th>
                    <th>ETABLISSEMENT</th>
                    <th>Status</th>
                    <th></th>
                </tr>
                </tfoot>
                <tbody>
                {% for etudiant in etudiants %}
                <tr class="antr">
                    <td class="antd" style="width:100px;">{{etudiant.nce}}</td>
                    <td>{{etudiant}}</td>
                    <td>{{etudiant.ufr.code}}</td>
                    <td>
                        {% if etudiant.email|check_inscription %}
                        <span class="badge badge-success">inscrit(e)</span>
                        {% else %}
                        <span class="badge badge-secondary">non-inscrit(e)</span>
                        {% endif %}
                    </td>
                    <td width="110">
                        <a href="{% url 'Scolarite:ags_reinscrption_check' etudiant.id %}" class="btn btn-warning btn-sm"><i class="fa fa-edit"></i> Gérer</a>
                    </td>
                </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock content %}

{% block custom_js %}
<script src="{% static 'js/custom-js/save_note.js'%} "></script>
 <script src="{% static 'js/custom-js/note.js' %}"></script>
<script>
    var elements = rootElement.getElementsByClassName('delib')
</script>
{% endblock custom_js %}