diff --git a/app/templates/assiduites/pages/ajout_justificatif.j2 b/app/templates/assiduites/pages/ajout_justificatif.j2 index 96f933b862..e1ee013e40 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}`, } }