forked from ScoDoc/ScoDoc
Jury BUT: pas de saisie pour les DEM
This commit is contained in:
parent
a00296250f
commit
f7463cbbb0
@ -2248,6 +2248,23 @@ def formsemestre_validation_but(formsemestre_id: int, etudid: int):
|
|||||||
|
|
||||||
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
|
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
|
||||||
etud = Identite.query.get_or_404(etudid)
|
etud = Identite.query.get_or_404(etudid)
|
||||||
|
if formsemestre.etuds_inscriptions[16405].etat != scu.INSCRIT:
|
||||||
|
return (
|
||||||
|
"\n".join(H)
|
||||||
|
+ f"""<div class="warning">Impossible de statuer sur cet étudiant:
|
||||||
|
il est démissionnaire ou défaillant (voir <a href="{
|
||||||
|
url_for("scolar.ficheEtud", scodoc_dept=g.scodoc_dept, etudid=etudid)
|
||||||
|
}">sa fiche</a>)
|
||||||
|
</div>
|
||||||
|
<div><a href="{url_for(
|
||||||
|
"notes.formsemestre_saisie_jury", scodoc_dept=g.scodoc_dept,
|
||||||
|
formsemestre_id=formsemestre_id, selected_etudid=etud.id
|
||||||
|
)}">retour à la liste</a></div>
|
||||||
|
</div>
|
||||||
|
"""
|
||||||
|
+ html_sco_header.sco_footer()
|
||||||
|
)
|
||||||
|
|
||||||
res: ResultatsSemestreBUT = res_sem.load_formsemestre_results(formsemestre)
|
res: ResultatsSemestreBUT = res_sem.load_formsemestre_results(formsemestre)
|
||||||
deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre)
|
deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre)
|
||||||
if len(deca.rcues_annee) == 0:
|
if len(deca.rcues_annee) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user