<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addTypCours" 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">
          <span>AJOUTER UNE PUBLICATION</span>
        </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 action="#" method="post">
               {% csrf_token %}
                <div class="form-group">
                    <label>Type de publication</label>
                    {% render_field form.typub class="form-control" %}
                </div>
              <div class="form-group">
                    <label>Année</label>
                    {% render_field form.annee class="form-control" placeholder="Année de publication" %}
                </div>
              <div class="form-group">
                    <label>Titre</label>
                    {% render_field form.titre class="form-control" placeholder="Titre de publication" %}
                </div>
              <div class="form-group">
                    <label>Référence</label>
                    {% render_field form.reference class="form-control" placeholder="Référence de publication" %}
                </div>
                <div class="form-group">
                    <label>Auteur(s)</label>
                    {% render_field form.auteurs class="form-control" placeholder="Auteurs de la publication" %}
                </div>
                <div class="form-group">
                    <label>Volume</label>
                    {% render_field form.volume class="form-control" placeholder="Volume de la publication" %}
                </div>

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