{% extends 'EspaceEtudiant/base_etudiant.html' %}
{% load static %}
{% block m-title %}Gestion des Comptes > Etudiant{% 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 ETUDIANT</h3>
                </div>
                <div class="card-body">
                    <form method="post" action="#">
                        {% csrf_token %}

                        {% for field in form %}
                        <div class="form-group">
                            <label>{{ field.label }}</label>
                            {% render_field field class="form-control" placeholder="Renseignez le champ" %}
                            {% if field.name == 'nb_enfant' or field.name == 'boursier' %}
                            <div class="row col-md-12" style="background-color:#21618C;margin:10px 0;color:#21618C;">g</div>
                            {% endif %}
                        </div>
                        {% endfor %}
                        <div class="modal-footer row">
                           <center> <button type="submit" class="btn btn-success"><i class="fa fa-save"></i> Enregistrer</button></center>
                        </div>
                    </form>

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

{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}