<!-- Modal détail demande -->
<div class="modal fade" id="enregistrerDetailDemande" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h1 class="modal-title fs-5" id="enregistrerDetailDemandeTitre">Détails de la demande</h1>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        <form enctype="multipart/form-data">
          {% csrf_token %}
          <div class="form-group mb-2">
            <label for="">Nom du produit :</label>
            <input type="text" class="form-control" id="detailNom" readonly>
          </div>
          <div class="form-group mb-2">
            <label for="">Catégorie :</label>
            <input type="text" class="form-control" id="detailCategorie" readonly>
          </div>
          <div class="form-group mb-2">
            <label for="">Motifs de la demande :</label>
            <textarea name="" id="detailmotif" class="form-control" readonly></textarea>
          </div>
          <div class="form-group mb-2">
            <label for="">Date de mise à disposition souhaitée :</label>
            <input type="date" class="form-control" id="detailDateDemande" readonly>
          </div>
          <div class="form-group">
            <label for="" class="form-check-label">A rendre ?</label>
            <input type="checkbox" name="" id="detailARendre" class="form-check-input" disabled>
          </div>

          {% if user.profile.chef_departement %}
          <div class="modal-footer">
            <button type="button" id="refuserBtn" class="btn btn-outline-danger">Refuser</button>
            <button type="submit" id="confirmerBtn" class="btn btn-outline-primary">Valider</button>
          </div>
          {% endif %}
        </form>
      </div>
    </div>
  </div>
</div>