{% extends 'other_admin/custom_admin_base.html' %}
{% load static %}
{% block m-title %}AGENT DE LA SCOLARITE{% endblock m-title %}
{% load widget_tweaks %}
{% block content %}
<section class="content">
    <div class="container-fluid">
        <!-- Small boxes (Stat box) -->
        <div class="container">
            <div class="card">
                <div class="card-header text-white" style="background: #21618C"><h3 class="card-title">EDITER UN AGENT</h3>
                </div>
                <div class="card-body">
                    <form method="post" action="#">
                        {% csrf_token %}
                        <div class="form-group">
                            <label>Nom</label>
                            <input type="text" class="form-control" name="nom" value="{{ agent.nom}}" />
                        </div>
                        <div class="form-group">
                            <label>Prénoms</label>
                            <input type="text" class="form-control" name="prenoms" value="{{ agent.prenoms}}" />
                        </div>
                        <div class="form-group">
                            <label>Sexe</label>
                            <select class="form-control" name="sexe">
                                <option value="{{ agent.sexe }}" selected>{{ agent.sexe }}</option>
                                <hr/>
                                <option value="M">M</option>
                                <option value="F">F</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Date de Naissance</label>
                            <input type="date" class="form-control" name="datenaiss" value="{{ agent.datenaiss |date:'Y-m-d' }}" />
                        </div>
                        <div class="form-group">
                            <label>Lieu de naissance</label>
                            <input type="text" class="form-control" name="lieunaiss" value="{{ agent.lieunaiss}}" />
                        </div>
                        <div class="form-group">
                            <label>Telephone</label>
                            <input type="text" class="form-control" name="phone" value="{{ agent.phone}}" />
                        </div><hr/>
                        <div class="form-group">
                            <label>Email</label>
                            <input type="text" class="form-control" name="email" value="{{ agent.email}}" />
                        </div>
                        <hr/>
                        <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">Enregistrer</button>
                      </div>
                    </form>

                </div>
            </div>
      </div>
    </div>
</section>

{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}