<!-- 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 UN LOGICIEL OU BREVET</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>Nom du logiciel</label>
                    {% render_field form.libelle class="form-control" placeholder="Nom du logiciel" %}
                </div>
              <div class="form-group">
                    <label>Fonction</label>
                    {% render_field form.fonction class="form-control" placeholder="Foncction principale du logiciel" %}
                </div>
              <div class="form-group">
                    <label>Participant</label>
                    {% render_field form.participant class="form-control" placeholder="Participant" %}
                </div>
              <div class="form-group">
                    <label>Url</label>
                    {% render_field form.url class="form-control" placeholder="Lien de téléchargement" %}
                </div>
              <div class="form-group">
                    <label>Description</label>
                    {% render_field form.description class="form-control" placeholder="Description" %}
                </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>