From 6d9d625b2ed68eb731b5bf0346010e7858c501d1 Mon Sep 17 00:00:00 2001 From: Iziram Date: Mon, 18 Sep 2023 17:42:05 +0200 Subject: [PATCH] Assiduites : justi journees entieres --- .../assiduites/pages/ajout_justificatif.j2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/templates/assiduites/pages/ajout_justificatif.j2 b/app/templates/assiduites/pages/ajout_justificatif.j2 index 96f933b86..e1ee013e4 100644 --- a/app/templates/assiduites/pages/ajout_justificatif.j2 +++ b/app/templates/assiduites/pages/ajout_justificatif.j2 @@ -19,7 +19,7 @@
Date de début - Journée entière + Journée(s) entière(s)
Date de fin @@ -221,21 +221,22 @@ function dayOnly() { if (document.getElementById('justi_journee').checked) { - document.getElementById("date_fin").style.display = "none"; document.getElementById("justi_date_debut").type = "date" + document.getElementById("justi_date_fin").type = "date" } else { - document.getElementById("date_fin").style.display = "block"; document.getElementById("justi_date_debut").type = "datetime-local" + document.getElementById("justi_date_fin").type = "datetime-local" } } function getDates() { if (document.getElementById('justi_journee').checked) { - const date_str = document.getElementById("justi_date_debut").value + const date_str_deb = document.getElementById("justi_date_debut").value + const date_str_fin = document.getElementById("justi_date_debut").value return { - "deb": `${date_str}T${assi_morning}`, - "fin": `${date_str}T${assi_evening}`, + "deb": `${date_str_deb}T${assi_morning}`, + "fin": `${date_str_fin}T${assi_evening}`, } }