From e11101b53bb6a2c1d0b2f1da1768352565f0293d Mon Sep 17 00:00:00 2001 From: lehmann Date: Thu, 28 Dec 2023 22:49:28 +0100 Subject: [PATCH] Route id EDT --- app/templates/scolar/partition_editor.j2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/templates/scolar/partition_editor.j2 b/app/templates/scolar/partition_editor.j2 index 67b25a1b5..dbd58d17e 100644 --- a/app/templates/scolar/partition_editor.j2 +++ b/app/templates/scolar/partition_editor.j2 @@ -810,16 +810,15 @@ } //Save - let url = ""; // A MODIFIER et décommenter ci-dessous - // Dispo en variables idGroupe et id_EDT - - /*fetch(url, { method: "POST" }) + let url = `/ScoDoc/{{formsemestre.departement.acronym}}/api/group/${idGroupe}/set_edt_id/${id_EDT}`; + + fetch(url, { method: "POST" }) .then(r => { return r.json() }) .then(r => { if (r.OK != true) { document.querySelector("main").innerHTML = "

Une erreur s'est produite lors de la sauvegarde des données (5).

"; } - });*/ + }); closeConfirm(); }