{% extends 'other_admin/custom_admin_base.html' %}
{% load static %}
{% block m-title %}AGENTS DE LA SCOLARITE{% endblock m-title %}
{% block content %}

<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        LISTE DES AGENTS DE SCOLARITE
        <a href="{% url 'BasicData:ag_scolartie_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 agents %}
                    <tr>
                        <td>{{ item }}</td>
                        <td>{{ item.email }}</td>
                        <td>
                            <a type="button" class="btn btn-primary btn-sm " href="{% url 'BasicData:ag_scolarite_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> -->
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}