<div class="modal fade" id="dialog-visite" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <form class="" action="" method="post" onsubmit="javascript:traitNewVisite();return false;">
        <input type="hidden" id="nv_id_bo_user" name="nv_id_bo_user" value="<?=$bu['id'];?>">
        <input type="hidden" id="nv_date" name="nv_date" value="<?=$date->toDateString();?>">
        <div class="modal-header">
          <h5 class="modal-title" id="staticBackdropLabel">
            Nouvelle visite <?=$jour;?> <?=$date->toLocalizedString('d MMM yyyy');?>
          </h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Annuler"></button>
        </div>
        <div class="modal-body">
          <div class="">
            <label for="nv_id_patient">Patient</label>
            <select class="form-select" id="nv_id_patient" name="nv_id_patient" onchange="javascript:selPatientVisite(this.value);">
              <option value="0"></option>
              <option value="new">++CREER NOUVEAU++</option>
              <?php foreach ($patients as $key => $patient): ?>
                <option value="<?=$patient['id'];?>"><?=$patient['nom'];?> <?=$patient['prenom'];?></option>
              <?php endforeach; ?>
            </select>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary me-3" data-bs-dismiss="modal">Annuler</button>
          <button type="submit" class="btn btn-primary">Ajouter</button>
        </div>
      </form>
    </div>
  </div>
</div>
