<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addPerso" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background: #21618C;color:#fff;">
        <h5 class="modal-title" id="exampleModalLabel">AJOUTER UN PERSONNEL</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
            <form method="post" action="#">
                {% csrf_token %}
               <!-- <div class="row">
                    <div class="col">
                        <label>UFR</label>
                        {% render_field form.ufrs class+="form-control" %}
                    </div>
                </div> -->
                <div class="row">
                    <div class="col-md-2">
                        <label>Sexe</label>
                        <div>{% render_field form.sexe class+="form-control" %}</div>
                    </div>
                    <div class="col-md">
                        <label>Nom</label>
                        <div>{% render_field form.nom class+="form-control" placeholder="Nom" %}</div>
                    </div>
                </div><br/>
                <div class="row">
                     <div class="col-md">
                        <label>Prénoms</label>
                        <div>{% render_field form.prenoms class+="form-control" placeholder="Prénoms" %}</div>
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-md">
                        <label>Date de Naissance</label>
                        <div>{% render_field form.datenaiss type="date" class+="form-control" placeholder="Date de Naissance" %}</div>
                    </div>
                    <div class="col-md">
                        <label>Lieu de naissance</label>
                        <div>{% render_field form.lieunaiss class+="form-control" placeholder="Lieu de Naissance" %}</div>
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-md">
                        <label>Téléphone</label>
                        <div>{% render_field form.phone class+="form-control" placeholder="Lieu de Naissance" %}</div>
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-md">
                        <label>Prise de fonction</label>
                        <div>{% render_field form.prise_de_fonction type="date" class+="form-control" placeholder="Date de Naissance" %}</div>
                    </div>
                    <div class="col-md">
                        <label>Rôle</label>
                        <div>{% render_field form.resposabilite class+="form-control" placeholder="Lieu de Naissance" %}</div>
                    </div>
                    <div class="col-md">
                        <label>Régime</label>
                        <div>{% render_field form.regime class+="form-control" placeholder="Lieu de Naissance" %}</div>
                    </div>
                </div>
                <hr/>
                <div class="form-group">
                    <label>Email</label>
                    <div>{% render_field form.email class+="form-control" placeholder="Email" %}</div>
                </div>
                <div class="form-group">
                    <label>Mot de Passe</label>
                    <div>{% render_field form.password type="password" class+="form-control" placeholder="*************" %}</div>
                </div>
                <div class="form-group">
                    <label>Confirmer</label>
                    <div>{% render_field form.password2 type="password" class+="form-control" placeholder="*************" %}</div>
                </div>
                <hr/>

                <div class="modal-footer">
                <button type="submit" name="addPersonBtn" class="btn btn-success">Enregistrer</button>
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
              </div>
            </form>
      </div>
    </div>
  </div>
</div>