From 097648c03ed90d508c9ef58ca0a1d4437a30755f Mon Sep 17 00:00:00 2001 From: Soriba SYLLA Date: Mon, 7 Sep 2026 11:33:21 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Correction=20de=20l'affichage=20des=20da?= =?UTF-8?q?tes=20dans=20les=20d=C3=A9tails=20de=20la=20r=C3=A9servation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SIRH/parts/menu_application.html | 3 +++ .../__pycache__/views.cpython-310.pyc | Bin 7505 -> 7554 bytes .../static/gestion_salle/js/index.js | 9 +++++---- .../templates/gestion_salle/index.html | 4 ++-- .../parts/modalCreationReservation.html | 2 +- .../parts/modalDetailResevation.html | 13 +++++-------- .../parts/modalListeValidation.html | 2 +- gestion_salle/views.py | 3 ++- 8 files changed, 19 insertions(+), 17 deletions(-) diff --git a/SIRH/templates/SIRH/parts/menu_application.html b/SIRH/templates/SIRH/parts/menu_application.html index 0ea4fed..1f97c24 100644 --- a/SIRH/templates/SIRH/parts/menu_application.html +++ b/SIRH/templates/SIRH/parts/menu_application.html @@ -15,6 +15,9 @@ + diff --git a/gestion_salle/__pycache__/views.cpython-310.pyc b/gestion_salle/__pycache__/views.cpython-310.pyc index 638c83b41baf7a6aa3a858e9acc8bbb79860f734..1bc85a4347189aa951bea2d19e732279938a1556 100644 GIT binary patch delta 745 zcmYL{Pe>GT6vy}dc4l_eoj=aZ;;b9FQOh#^38_P9L|_HcKL}3+A=ZqwTWb5;QPb80 zyVjvzbdu6Tl+YzM=-?sf-l2}0LFedFAe065-ljD_-iPmd^Lzh>c{jLt(3~`k)&xDT z9zQDg_r5R(443_3vg#GW|SS*Wr`4}(qdi4r}j|rfMj(i!2}&dl9%Om z`6$h!gSL@2Wu@-4?*eU{Gq2)+a{wmm6=xs#T(_ZAN2eosm}H=AS6_4c;Te8$_rnb4 zy|-OROTfEGW>aE8{z!XD-L@{2X3T zJ$sm{io_D^n*!{Y&61$gRu1s7`ZSSH_A{xVh9#{G_iaKJ*Z_7-gwv zKum9C{8*$oDLGQ=Kc&$ZIz^Tu*PQa>zOtEKlS2bPYEEh;S)3~uZN`zKI;`l z8Z>)nv*V!L63#`e=cb_1d!9Q9w&>fJTh;cBV1}eC54wLbPQXhXH7B8sSIoE8AFJ>$ z2}JV+IB6~9LXivec5Gno<{jLz40wZk);KIv1GA?NdxHUbGb0s9M?UeU!5RF?ZG5C_ zxMLUKE_N*w_iY1qkvkrAdee>r?*9QMgeRJ!CDfR}J%NJ23a%b{4v(MRVpe6Q4$Ps@ IC`L^94cdE_IRF3v diff --git a/gestion_salle/static/gestion_salle/js/index.js b/gestion_salle/static/gestion_salle/js/index.js index c9f82d1..d2a3253 100644 --- a/gestion_salle/static/gestion_salle/js/index.js +++ b/gestion_salle/static/gestion_salle/js/index.js @@ -26,7 +26,7 @@ const calendrier = Schedule(document.getElementById('planning-reservation'), { $("employe").value=data.employe; $("salle").value=data.salle; $("statut-reservation").innerHTML=data.statut; - $("date_debut").value=data.date_debut; + $("date_evenement").value=data.date_evenement; $("heure_debut").value=data.heure_debut; $("heure_fin").value=data.heure_fin; $("motif_reservation").value=data.motif_reservation; @@ -171,7 +171,7 @@ const tableau_reservation_attente = new Tabulator("#tableau-reservation-attente" columns: [ {title: "Employé", field: "employe"}, {title: "Salle", field: "salle"}, - {title: "Date de l'evenement", field: "date_debut"}, + {title: "Date de l'evenement", field: "date_evenement"}, {title: "Heure de début", field: "heure_debut"}, {title: "Heure de fin", field: "heure_fin"}, {title: "Motif de reservation", field: "motif_reservation"}, @@ -183,6 +183,8 @@ const tableau_reservation_attente = new Tabulator("#tableau-reservation-attente" tableau_reservation_attente.on("rowClick", (row, rowData) => { const data = rowData.getData(); + console.log(data); + if(data.besoin_zoom === false){ $("lien_zoom_container").className = 'd-none'; } @@ -196,8 +198,7 @@ tableau_reservation_attente.on("rowClick", (row, rowData) => { $("employe").value=data.employe; $("salle").value=data.salle; $("statut-reservation").innerHTML=data.statut; - $("date_debut").value = data.date_debut; - $("date_fin").value = data.date_fin; + $("date_evenement").value = data.date_evenement; $("heure_debut").value=data.heure_debut; $("heure_fin").value=data.heure_fin; $("motif_reservation").value=data.motif_reservation; diff --git a/gestion_salle/templates/gestion_salle/index.html b/gestion_salle/templates/gestion_salle/index.html index 6d178e3..f4fafae 100644 --- a/gestion_salle/templates/gestion_salle/index.html +++ b/gestion_salle/templates/gestion_salle/index.html @@ -16,7 +16,7 @@ {% endif %}
-

Reservation de salle

+

Réservation de salle


@@ -34,7 +34,7 @@
- + diff --git a/gestion_salle/templates/gestion_salle/parts/modalCreationReservation.html b/gestion_salle/templates/gestion_salle/parts/modalCreationReservation.html index 0db15f8..4e0ce50 100644 --- a/gestion_salle/templates/gestion_salle/parts/modalCreationReservation.html +++ b/gestion_salle/templates/gestion_salle/parts/modalCreationReservation.html @@ -4,7 +4,7 @@