{% extends 'dg_ufr/base_ufr.html' %}
{% load static %}
{% load custom_tag %}
{% load custom_tag_obj %}
{% block content %}
<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        ENSEIGNANTS DU GROUPE: <span style="color:red;font-weight:bold;">{{groupe.libelle}}</span>
        <button data-toggle="modal" data-target="#addGroupEns" style="float:right;margin:2px;" class="btn btn-primary btn-sm" ><i class="fa fa-plus"></i> Ajouter</button>
        <a href="{% url 'EspaceEnseignant:groupe_etude_list' %}" style="float:right;margin:2px;" class="btn btn-secondary btn-sm" ><i class="fa fa-users"></i> Liste des Groupe</a>
        {% include 'dg_ufr/modal/modal_add_groupe_enseignant.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></th>
                    <th>NOM ET PRENOMS</th>
                    <th>GRADE</th>
                    <th></th>
                </tr>
                </thead>
                <tfoot>
                <tr>
                    <th></th>
                    <th>NOM ET PRENOMS</th>
                    <th>GRADE</th>
                    <th></th>
                </tr>
                </tfoot>
                <tbody>
                {% for item in GrEns %}
                    <tr>
                        <td>{{ forloop.counter }}</td>
                        <td>{{ item.enseignant }}</td>
                        <td>{{ item.enseignant.grade }}</td>
                        <td width="80">
                            <!-- <a type="button" class="btn btn-danger btn-sm" href="#"><i class="fa fa-trash" title="supprimer"></i></a> -->
                            <button data-toggle="modal" data-target="#deletegroupens{{item.id}}" type="button" class="btn btn-danger btn-sm " ><i class="fa fa-trash" title="Supprimer"></i> </button>
                            {% include 'dg_ufr/modal/modal_delete_groupe_enseignant.html' %}
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>

{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}