<div class="modal fade" id="dialog-rdv" 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:traitNewRdv();return false;">
        <input type="hidden" id="new_id_bo_user" name="new_id_bo_user" value="<?=$bu['id'];?>">
        <input type="hidden" id="new_date" name="new_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="container-fluid">
            <div class="row mb-2">
              <div class="col" id="div_new_patient">
              </div>
            </div>
            <b>Type</b>
            <div class="mb-1">
              <div class="form-check form-check-inline m-1">
                <input class="form-check-input" type="radio" name="type_new" id="type_new_petit_matin" value="petit_matin" checked>
                <label class="form-check-label" for="type_new_petit_matin">Petit matin</label>
              </div>
              <div class="form-check form-check-inline m-1">
                <input class="form-check-input" type="radio" name="type_new" id="type_new_matin" value="matin">
                <label class="form-check-label" for="type_new_matin">Matin</label>
              </div>
              <div class="form-check form-check-inline m-1">
                <input class="form-check-input" type="radio" name="type_new" id="type_new_midi" value="midi">
                <label class="form-check-label" for="type_new_midi">Midi</label>
              </div>
              <div class="form-check form-check-inline m-1">
                <input class="form-check-input" type="radio" name="type_new" id="type_new_soir" value="soir">
                <label class="form-check-label" for="type_new_soir">Soir</label>
              </div>
            </div>
            <b>Horaire souhaité</b>
            <div class="mb-1">
              <textarea name="horaire_souhaite" id="horaire_souhaite" style="width:100%;"></textarea>
            </div>
            <b>Fréquence des soins</b>
            <div class="mb-1">
              <div class="form-check form-check-inline m-1">
                <input class="form-check-input" type="radio" name="frequence_new" id="frequence_new_0" value="0" checked>
                <label class="form-check-label" for="frequence_new_0">Aucune</label>
              </div>
              <?php foreach ($frequences as $key_fre => $fre): ?>
                <div class="form-check form-check-inline m-1">
                  <input class="form-check-input" type="radio" name="frequence_new" id="frequence_new_<?=$fre['id'];?>" value="<?=$fre['id'];?>">
                  <label class="form-check-label" for="frequence_new_<?=$fre['id'];?>"><?=$fre['libel'];?></label>
                </div>
              <?php endforeach; ?>
            </div>




            <!-- <div class="form-check form-switch">
              <input class="form-check-input" type="checkbox" role="switch" value="1" id="new_petit_matin" name="new_petit_matin">
              <label class="form-check-label icon-alarm" for="new_petit_matin"> Petit matin</label>
            </div>

            <div class="form-check form-switch">
              <input class="form-check-input" type="checkbox" role="switch" value="1" id="new_mms" name="new_mms">
              <label class="form-check-label icon-loop2" for="new_mms"> Matin/midi/soir</label>
            </div> -->

            <div class="row">
              <div class="col" id="div_new_acte">
              </div>
            </div>



          </div>

          <div id="div_alert_err">

          </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>
