Fix #569 front: ADJR

This commit is contained in:
Emmanuel Viennet 2023-01-22 17:44:57 -03:00
parent a466486766
commit ccc9e1317d
2 changed files with 5 additions and 3 deletions

View File

@ -1057,7 +1057,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
flash(
f"""UEs du RCUE "{dec_ue.ue.niveau_competence.competence.titre}" passées en ADJR"""
)
dec_ue.record("ADJR")
dec_ue.record(sco_codes.ADJR)
# Valide les niveaux inférieurs de la compétence (code ADSUP)
# TODO

View File

@ -26,8 +26,10 @@ function change_menu_code(elt) {
let ue_selects = elt.parentElement.parentElement.parentElement.querySelectorAll(
"select.ue_rcue_" + elt.dataset.niveau_id);
ue_selects.forEach(select => {
if (select.value != "ADM") {
select.value = "ADJR";
change_menu_code(select); // pour changer les styles
}
});
}
}