forked from ScoDoc/ScoDoc
Améliore jury_delete_manual: décisions d'UE sur sem. verrouillés non éditables.
This commit is contained in:
parent
35692da422
commit
6cc24edc2d
@ -65,10 +65,15 @@ pages de saisie de jury habituelles).
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not read_only %}
|
{% if not read_only %}
|
||||||
|
{% if v.formsemestre.etat %}
|
||||||
<form class="inline-form">
|
<form class="inline-form">
|
||||||
<button data-v_id="{{v.id}}" data-type="validation_ue" data-etudid="{{etud.id}}"
|
<button data-v_id="{{v.id}}"
|
||||||
|
data-type="validation_ue" data-etudid="{{etud.id}}"
|
||||||
>effacer validation d'UE</button>
|
>effacer validation d'UE</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<p class="fontred">semestre verrouillé</p>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
@ -197,6 +202,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
location.reload();
|
location.reload();
|
||||||
} else {
|
} else {
|
||||||
console.log(`Error: ${SCO_URL}../api/etudiant/${etudid}/jury/${validation_type}/${v_id}/delete`);
|
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');
|
throw new Error('Request failed');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user