Bug: Validation des conges
Some checks failed
Organisation/sirh/pipeline/head There was a failure building this commit
Some checks failed
Organisation/sirh/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -33,11 +33,6 @@ const calendrier = Schedule(document.getElementById('planning-reservation'), {
|
||||
$("lien_zoom_container").className = "d-none";
|
||||
}
|
||||
|
||||
// if(data.statut !== "annulee"){
|
||||
// $("motif_refus_container").className = "d-none";
|
||||
// }else{
|
||||
// $("motif_refus").value=data.motif_refus;
|
||||
// }
|
||||
})
|
||||
}
|
||||
});
|
||||
@@ -168,6 +163,7 @@ tableau_reservation_attente.on("rowClick", (row, rowData) => {
|
||||
$("lien_zoom_container").className = 'd-none';
|
||||
}
|
||||
|
||||
const id_user = $("current-user-id").dataset.userid;
|
||||
$("id_reservation_detail").value = data.id;
|
||||
$("id_reservation_refus").value = data.id;
|
||||
$("id_reservation_zoom").value = data.id;
|
||||
@@ -184,6 +180,10 @@ tableau_reservation_attente.on("rowClick", (row, rowData) => {
|
||||
$("besoin_ordinateur").checked=data.besoin_ordi;
|
||||
$("lien_zoom").value=data.lien_zoom;
|
||||
|
||||
if (id_user != data.employe_id){
|
||||
$("bouton-annuler").className = "d-none";
|
||||
}
|
||||
|
||||
const modal = new bootstrap.Modal($("modalDetailReservation"));
|
||||
bootstrap.Modal.getOrCreateInstance($("modalReservationAttente")).hide();
|
||||
modal.show();
|
||||
|
||||
Reference in New Issue
Block a user