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'); } });