From 6cc24edc2d4e23caaf837c24b3420f017354b978 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 4 Sep 2024 05:55:25 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liore=20jury=5Fdelete=5Fmanual:=20d?= =?UTF-8?q?=C3=A9cisions=20d'UE=20sur=20sem.=20verrouill=C3=A9s=20non=20?= =?UTF-8?q?=C3=A9ditables.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/jury/jury_delete_manual.j2 | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/app/templates/jury/jury_delete_manual.j2 b/app/templates/jury/jury_delete_manual.j2 index 413d4aee1..e00dd545e 100644 --- a/app/templates/jury/jury_delete_manual.j2 +++ b/app/templates/jury/jury_delete_manual.j2 @@ -65,10 +65,15 @@ pages de saisie de jury habituelles). {% endif %} {% if not read_only %} -
- -
+ {% if v.formsemestre.etat %} +
+ +
+ {% else %} +

semestre verrouillé

+ {% endif %} {% endif %} @@ -197,6 +202,12 @@ document.addEventListener('DOMContentLoaded', () => { location.reload(); } else { console.log(`Error: ${SCO_URL}../api/etudiant/${etudid}/jury/${validation_type}/${v_id}/delete`); + if (response.status == 403) { + alert("Suppression non autorisée (semestre verrouillé?)"); + } else { + alert(`Erreur lors de la suppression (${response.status})`); + } + alert("Erreur lors de la suppression"); throw new Error('Request failed'); } });