<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addPeriod" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="color:#fff;background: #21618C">
        <h5 class="modal-title">Ajouter une Période</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" style="color:#000000;">
                <div class="col">
                <label>Début</label>
                <div>{% render_field form.dateDebut class+="form-control" type="date" %}</div>
                </div>
                <div class="col">
                <label>Fin</label>
                <div>{% render_field form.dateFin class+="form-control" type="date" %}</div>
                </div>
            </div>
            <br/>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" name="deliberation" class="btn btn-primary">Enregistrer</button>
          </div>

        </form>
      </div>
    </div>
  </div>
</div>