2022-06-29 21:16:49 +02:00
|
|
|
##############################################################################
|
|
|
|
# ScoDoc
|
|
|
|
# Copyright (c) 1999 - 2022 Emmanuel Viennet. All rights reserved.
|
|
|
|
# See LICENSE
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
"""Jury BUT: affichage/formulaire
|
|
|
|
"""
|
|
|
|
|
2022-09-30 16:20:51 +02:00
|
|
|
import re
|
|
|
|
|
|
|
|
import flask
|
|
|
|
from flask import flash, url_for
|
|
|
|
from flask import g, request
|
|
|
|
|
|
|
|
from app import db
|
|
|
|
from app.but import jury_but
|
2022-06-29 21:16:49 +02:00
|
|
|
from app.but.jury_but import DecisionsProposeesAnnee, DecisionsProposeesUE
|
2022-09-30 16:20:51 +02:00
|
|
|
from app.comp import res_sem
|
|
|
|
from app.comp.res_but import ResultatsSemestreBUT
|
|
|
|
from app.models import (
|
|
|
|
FormSemestre,
|
|
|
|
FormSemestreInscription,
|
|
|
|
Identite,
|
|
|
|
UniteEns,
|
|
|
|
ScolarAutorisationInscription,
|
|
|
|
)
|
|
|
|
from app.scodoc import html_sco_header
|
2022-06-29 21:16:49 +02:00
|
|
|
from app.scodoc.sco_exceptions import ScoValueError
|
2022-09-30 16:20:51 +02:00
|
|
|
from app.scodoc import sco_utils as scu
|
2022-06-29 21:16:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
def show_etud(deca: DecisionsProposeesAnnee, read_only: bool = True) -> str:
|
|
|
|
"""Affichage des décisions annuelles BUT
|
|
|
|
Si pas read_only, menus sélection codes jury.
|
|
|
|
"""
|
|
|
|
H = []
|
|
|
|
if deca.code_valide and not read_only:
|
|
|
|
erase_span = f"""<a href="{
|
|
|
|
url_for("notes.formsemestre_jury_but_erase",
|
|
|
|
scodoc_dept=g.scodoc_dept, formsemestre_id=deca.formsemestre_id,
|
|
|
|
etudid=deca.etud.id)}" class="stdlink">effacer décisions</a>"""
|
|
|
|
else:
|
|
|
|
erase_span = ""
|
|
|
|
|
2022-11-26 12:58:21 +01:00
|
|
|
H.append("""<div class="but_section_annee">""")
|
|
|
|
if deca.jury_annuel:
|
|
|
|
H.append(
|
|
|
|
f"""
|
2022-09-30 16:20:51 +02:00
|
|
|
<div>
|
2022-11-26 12:58:21 +01:00
|
|
|
<b>Décision de jury pour l'année :</b> {
|
|
|
|
_gen_but_select("code_annee", deca.codes, deca.code_valide,
|
|
|
|
disabled=True, klass="manual")
|
|
|
|
}
|
|
|
|
<span>({'non ' if deca.code_valide is None else ''}enregistrée)</span>
|
|
|
|
<span>{erase_span}</span>
|
2022-09-30 16:20:51 +02:00
|
|
|
</div>
|
|
|
|
<div class="but_explanation">{deca.explanation}</div>
|
|
|
|
"""
|
2022-11-26 12:58:21 +01:00
|
|
|
)
|
|
|
|
else:
|
|
|
|
H.append("""<div><em>Pas de décision annuelle (sem. impair)</em></div>""")
|
|
|
|
H.append("""</div>""")
|
2022-06-29 21:16:49 +02:00
|
|
|
|
2022-11-27 19:07:42 +01:00
|
|
|
if deca.formsemestre_pair is not None:
|
|
|
|
annee_sco_pair = deca.formsemestre_pair.annee_scolaire()
|
|
|
|
avertissement_redoublement = (
|
|
|
|
f"année {annee_sco_pair}-{annee_sco_pair+1}"
|
|
|
|
if annee_sco_pair != deca.annee_scolaire()
|
|
|
|
else ""
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
avertissement_redoublement = ""
|
2022-11-26 13:23:06 +01:00
|
|
|
|
2022-12-20 19:20:00 +01:00
|
|
|
formsemestre_1 = deca.formsemestre_impair
|
|
|
|
formsemestre_2 = deca.formsemestre_pair
|
|
|
|
# Ordonne selon les dates des 2 semestres considérés (pour les redoublants à cheval):
|
2022-12-20 23:00:01 +01:00
|
|
|
reverse_semestre = (
|
|
|
|
deca.formsemestre_pair
|
|
|
|
and deca.formsemestre_impair
|
|
|
|
and deca.formsemestre_pair.date_debut < deca.formsemestre_impair.date_debut
|
|
|
|
)
|
|
|
|
if reverse_semestre:
|
2022-12-20 19:20:00 +01:00
|
|
|
formsemestre_1, formsemestre_2 = formsemestre_2, formsemestre_1
|
2022-06-29 21:16:49 +02:00
|
|
|
H.append(
|
|
|
|
f"""
|
2022-12-09 04:24:32 +01:00
|
|
|
<div class="titre_niveaux"><b>Niveaux de compétences et unités d'enseignement du BUT{deca.annee_but}</b></div>
|
2022-06-29 21:16:49 +02:00
|
|
|
<div class="but_annee">
|
|
|
|
<div class="titre"></div>
|
2022-12-20 19:20:00 +01:00
|
|
|
<div class="titre">S{formsemestre_1.semestre_id
|
|
|
|
if formsemestre_1 else "-"}
|
|
|
|
<span class="avertissement_redoublement">{formsemestre_1.annee_scolaire_str() if formsemestre_1 else ""}</span>
|
|
|
|
</div>
|
|
|
|
<div class="titre">S{formsemestre_2.semestre_id
|
|
|
|
if formsemestre_2 else "-"}
|
|
|
|
<span class="avertissement_redoublement">{formsemestre_2.annee_scolaire_str() if formsemestre_2 else ""}</span>
|
|
|
|
</div>
|
2022-06-29 21:16:49 +02:00
|
|
|
<div class="titre">RCUE</div>
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
for niveau in deca.niveaux_competences:
|
|
|
|
H.append(
|
|
|
|
f"""<div class="but_niveau_titre">
|
|
|
|
<div title="{niveau.competence.titre_long}">{niveau.competence.titre}</div>
|
|
|
|
</div>"""
|
|
|
|
)
|
2022-12-20 19:20:00 +01:00
|
|
|
dec_rcue = deca.decisions_rcue_by_niveau.get(niveau.id) # peut être None
|
|
|
|
ues = [ue for ue in deca.ues_impair if ue.niveau_competence.id == niveau.id]
|
|
|
|
ue_impair = ues[0] if ues else None
|
|
|
|
ues = [ue for ue in deca.ues_pair if ue.niveau_competence.id == niveau.id]
|
|
|
|
ue_pair = ues[0] if ues else None
|
|
|
|
# Les UEs à afficher, toujours en readonly sur le formsemestre de l'année précédente du redoublant
|
|
|
|
ues_ro = [
|
|
|
|
(
|
|
|
|
ue_impair,
|
|
|
|
(deca.a_cheval and deca.formsemestre_id != deca.formsemestre_impair.id),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
ue_pair,
|
|
|
|
deca.a_cheval and deca.formsemestre_id != deca.formsemestre_pair.id,
|
|
|
|
),
|
|
|
|
]
|
|
|
|
# Ordonne selon les dates des 2 semestres considérés:
|
2022-12-20 23:00:01 +01:00
|
|
|
if reverse_semestre:
|
2022-12-20 19:20:00 +01:00
|
|
|
ues_ro[0], ues_ro[1] = ues_ro[1], ues_ro[0]
|
|
|
|
# Colonnes d'UE:
|
|
|
|
for ue, ue_read_only in ues_ro:
|
2022-12-20 23:00:01 +01:00
|
|
|
if ue:
|
|
|
|
H.append(
|
|
|
|
_gen_but_niveau_ue(
|
|
|
|
ue,
|
|
|
|
deca.decisions_ues[ue.id],
|
|
|
|
disabled=read_only or ue_read_only,
|
|
|
|
annee_prec=ue_read_only,
|
|
|
|
)
|
2022-12-20 19:20:00 +01:00
|
|
|
)
|
2022-12-20 23:00:01 +01:00
|
|
|
else:
|
|
|
|
H.append("""<div class="niveau_vide"></div>""")
|
2022-12-20 19:20:00 +01:00
|
|
|
|
2022-06-29 21:16:49 +02:00
|
|
|
# RCUE
|
2022-12-20 19:20:00 +01:00
|
|
|
if dec_rcue is None:
|
|
|
|
H.append("""<div class="niveau_vide"></div>""")
|
|
|
|
else:
|
|
|
|
H.append(
|
|
|
|
f"""<div class="but_niveau_rcue
|
|
|
|
{'recorded' if dec_rcue.code_valide is not None else ''}
|
|
|
|
">
|
|
|
|
<div class="but_note">{scu.fmt_note(dec_rcue.rcue.moy_rcue)}</div>
|
|
|
|
<div class="but_code">{
|
|
|
|
_gen_but_select("code_rcue_"+str(niveau.id),
|
|
|
|
dec_rcue.codes,
|
|
|
|
dec_rcue.code_valide,
|
|
|
|
disabled=True, klass="manual"
|
|
|
|
)
|
|
|
|
}</div>
|
|
|
|
</div>"""
|
|
|
|
)
|
2022-06-29 21:16:49 +02:00
|
|
|
H.append("</div>") # but_annee
|
|
|
|
return "\n".join(H)
|
|
|
|
|
|
|
|
|
|
|
|
def _gen_but_select(
|
|
|
|
name: str,
|
|
|
|
codes: list[str],
|
|
|
|
code_valide: str,
|
|
|
|
disabled: bool = False,
|
|
|
|
klass: str = "",
|
|
|
|
) -> str:
|
|
|
|
"Le menu html select avec les codes"
|
2022-12-20 19:20:00 +01:00
|
|
|
# if disabled: # mauvaise idée car le disabled est traité en JS
|
|
|
|
# return f"""<div class="but_code {klass}">{code_valide}</div>"""
|
2022-06-29 21:16:49 +02:00
|
|
|
h = "\n".join(
|
|
|
|
[
|
|
|
|
f"""<option value="{code}"
|
|
|
|
{'selected' if code == code_valide else ''}
|
|
|
|
class="{'recorded' if code == code_valide else ''}"
|
|
|
|
>{code}</option>"""
|
|
|
|
for code in codes
|
|
|
|
]
|
|
|
|
)
|
2022-11-24 00:11:59 +01:00
|
|
|
return f"""<select required name="{name}"
|
2022-06-29 21:16:49 +02:00
|
|
|
class="but_code {klass}"
|
|
|
|
onchange="change_menu_code(this);"
|
|
|
|
{"disabled" if disabled else ""}
|
|
|
|
>{h}</select>
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2022-12-20 19:20:00 +01:00
|
|
|
def _gen_but_niveau_ue(
|
|
|
|
ue: UniteEns,
|
|
|
|
dec_ue: DecisionsProposeesUE,
|
|
|
|
disabled: bool = False,
|
|
|
|
annee_prec: bool = False,
|
|
|
|
):
|
2022-11-24 00:11:59 +01:00
|
|
|
if dec_ue.ue_status and dec_ue.ue_status["is_capitalized"]:
|
|
|
|
moy_ue_str = f"""<span class="ue_cap">{
|
|
|
|
scu.fmt_note(dec_ue.moy_ue_with_cap)}</span>"""
|
|
|
|
scoplement = f"""<div class="scoplement">
|
|
|
|
<div>
|
|
|
|
<b>UE {ue.acronyme} capitalisée le
|
|
|
|
{dec_ue.ue_status["event_date"].strftime("%d/%m/%Y")}
|
|
|
|
</b>
|
|
|
|
</div>
|
|
|
|
<div>UE en cours avec moyenne
|
|
|
|
{scu.fmt_note(dec_ue.moy_ue)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
"""
|
|
|
|
else:
|
|
|
|
moy_ue_str = f"""<span>{scu.fmt_note(dec_ue.moy_ue)}</span>"""
|
|
|
|
scoplement = ""
|
|
|
|
|
2022-06-29 21:16:49 +02:00
|
|
|
return f"""<div class="but_niveau_ue {
|
|
|
|
'recorded' if dec_ue.code_valide is not None else ''}
|
2022-12-20 19:20:00 +01:00
|
|
|
{'annee_prec' if annee_prec else ''}
|
2022-06-29 21:16:49 +02:00
|
|
|
">
|
|
|
|
<div title="{ue.titre}">{ue.acronyme}</div>
|
2022-11-24 00:11:59 +01:00
|
|
|
<div class="but_note with_scoplement">
|
|
|
|
<div>{moy_ue_str}</div>
|
|
|
|
{scoplement}
|
|
|
|
</div>
|
2022-06-29 21:16:49 +02:00
|
|
|
<div class="but_code">{
|
|
|
|
_gen_but_select("code_ue_"+str(ue.id),
|
|
|
|
dec_ue.codes,
|
|
|
|
dec_ue.code_valide, disabled=disabled
|
|
|
|
)
|
|
|
|
}</div>
|
2022-11-24 00:11:59 +01:00
|
|
|
|
2022-06-29 21:16:49 +02:00
|
|
|
</div>"""
|
|
|
|
|
|
|
|
|
2022-09-30 16:20:51 +02:00
|
|
|
def jury_but_semestriel(
|
2022-11-01 22:51:50 +01:00
|
|
|
formsemestre: FormSemestre,
|
|
|
|
etud: Identite,
|
|
|
|
read_only: bool,
|
|
|
|
navigation_div: str = "",
|
2022-09-30 16:20:51 +02:00
|
|
|
) -> str:
|
|
|
|
"""Formulaire saisie décision d'UE d'un semestre BUT isolé (pas jury annuel)"""
|
|
|
|
res: ResultatsSemestreBUT = res_sem.load_formsemestre_results(formsemestre)
|
|
|
|
parcour, ues = jury_but.list_ue_parcour_etud(formsemestre, etud, res)
|
|
|
|
inscription_etat = etud.inscription_etat(formsemestre.id)
|
|
|
|
semestre_terminal = (
|
|
|
|
formsemestre.semestre_id >= formsemestre.formation.get_parcours().NB_SEM
|
|
|
|
)
|
2022-12-08 03:02:40 +01:00
|
|
|
# Par défaut: autorisé à passer dans le semestre suivant si sem. impair,
|
2022-11-27 19:20:57 +01:00
|
|
|
# ou si décision déjà enregistrée:
|
|
|
|
est_autorise_a_passer = (formsemestre.semestre_id % 2) or (
|
|
|
|
formsemestre.semestre_id + 1
|
|
|
|
) in (
|
2022-09-30 16:20:51 +02:00
|
|
|
a.semestre_id
|
|
|
|
for a in ScolarAutorisationInscription.query.filter_by(
|
|
|
|
etudid=etud.id,
|
|
|
|
origin_formsemestre_id=formsemestre.id,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
decisions_ues = {
|
|
|
|
ue.id: DecisionsProposeesUE(etud, formsemestre, ue, inscription_etat)
|
|
|
|
for ue in ues
|
|
|
|
}
|
|
|
|
for dec_ue in decisions_ues.values():
|
|
|
|
dec_ue.compute_codes()
|
|
|
|
|
|
|
|
if request.method == "POST":
|
|
|
|
if not read_only:
|
|
|
|
for key in request.form:
|
|
|
|
code = request.form[key]
|
|
|
|
# Codes d'UE
|
|
|
|
m = re.match(r"^code_ue_(\d+)$", key)
|
|
|
|
if m:
|
|
|
|
ue_id = int(m.group(1))
|
|
|
|
dec_ue = decisions_ues.get(ue_id)
|
|
|
|
if not dec_ue:
|
|
|
|
raise ScoValueError(f"UE invalide ue_id={ue_id}")
|
|
|
|
dec_ue.record(code)
|
|
|
|
db.session.commit()
|
|
|
|
flash("codes enregistrés")
|
|
|
|
if not semestre_terminal:
|
|
|
|
if request.form.get("autorisation_passage"):
|
|
|
|
if not est_autorise_a_passer:
|
|
|
|
ScolarAutorisationInscription.autorise_etud(
|
|
|
|
etud.id,
|
|
|
|
formsemestre.formation.formation_code,
|
|
|
|
formsemestre.id,
|
|
|
|
formsemestre.semestre_id + 1,
|
|
|
|
)
|
|
|
|
db.session.commit()
|
|
|
|
flash(
|
|
|
|
f"autorisation de passage en S{formsemestre.semestre_id + 1} enregistrée"
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
if est_autorise_a_passer:
|
|
|
|
ScolarAutorisationInscription.delete_autorisation_etud(
|
|
|
|
etud.id, formsemestre.id
|
|
|
|
)
|
|
|
|
db.session.commit()
|
|
|
|
flash(
|
|
|
|
f"autorisation de passage en S{formsemestre.semestre_id + 1} annulée"
|
|
|
|
)
|
|
|
|
return flask.redirect(
|
|
|
|
url_for(
|
|
|
|
"notes.formsemestre_validation_but",
|
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
formsemestre_id=formsemestre.id,
|
|
|
|
etudid=etud.id,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
# GET
|
|
|
|
if formsemestre.semestre_id % 2 == 0:
|
|
|
|
warning = f"""<div class="warning">
|
|
|
|
Cet étudiant de S{formsemestre.semestre_id} ne peut pas passer
|
|
|
|
en jury BUT annuel car il lui manque le semestre précédent.
|
|
|
|
</div>"""
|
|
|
|
else:
|
|
|
|
warning = ""
|
|
|
|
H = [
|
|
|
|
html_sco_header.sco_header(
|
|
|
|
page_title="Validation BUT",
|
|
|
|
formsemestre_id=formsemestre.id,
|
|
|
|
etudid=etud.id,
|
|
|
|
cssstyles=("css/jury_but.css",),
|
|
|
|
javascripts=("js/jury_but.js",),
|
|
|
|
),
|
|
|
|
f"""
|
|
|
|
<div class="jury_but">
|
|
|
|
<div>
|
|
|
|
<div class="bull_head">
|
|
|
|
<div>
|
|
|
|
<div class="titre_parcours">Jury BUT S{formsemestre.id}
|
|
|
|
- Parcours {(parcour.libelle if parcour else False) or "non spécifié"}
|
|
|
|
</div>
|
|
|
|
<div class="nom_etud">{etud.nomprenom}</div>
|
|
|
|
</div>
|
|
|
|
<div class="bull_photo"><a href="{
|
|
|
|
url_for("scolar.ficheEtud", scodoc_dept=g.scodoc_dept, etudid=etud.id)
|
|
|
|
}">{etud.photo_html(title="fiche de " + etud.nomprenom)}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h3>Jury sur un semestre BUT isolé</h3>
|
|
|
|
{warning}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="POST">
|
|
|
|
""",
|
|
|
|
]
|
|
|
|
if (not read_only) and any([dec.code_valide for dec in decisions_ues.values()]):
|
|
|
|
erase_span = f"""<a href="{
|
|
|
|
url_for("notes.formsemestre_jury_but_erase",
|
|
|
|
scodoc_dept=g.scodoc_dept, formsemestre_id=formsemestre.id,
|
|
|
|
etudid=etud.id, only_one_sem=1)}" class="stdlink">effacer décisions</a>"""
|
|
|
|
else:
|
|
|
|
erase_span = "aucune décision enregistrée pour ce semestre"
|
|
|
|
|
|
|
|
H.append(
|
|
|
|
f"""
|
|
|
|
<div class="but_section_annee">
|
|
|
|
<span>{erase_span}</span>
|
|
|
|
</div>
|
|
|
|
<div><b>Unités d'enseignement de S{formsemestre.semestre_id}:</b></div>
|
|
|
|
"""
|
|
|
|
)
|
2022-12-08 03:02:40 +01:00
|
|
|
if not ues:
|
2022-09-30 16:20:51 +02:00
|
|
|
H.append(
|
2022-12-08 03:02:40 +01:00
|
|
|
"""<div class="warning">Aucune UE ! Vérifiez votre programme de
|
|
|
|
formation, et l'association UEs / Niveaux de compétences</div>"""
|
2022-09-30 16:20:51 +02:00
|
|
|
)
|
2022-12-08 03:02:40 +01:00
|
|
|
else:
|
2022-09-30 16:20:51 +02:00
|
|
|
H.append(
|
2022-12-08 03:02:40 +01:00
|
|
|
"""
|
|
|
|
<div class="but_annee">
|
|
|
|
<div class="titre"></div>
|
|
|
|
<div class="titre"></div>
|
|
|
|
<div class="titre"></div>
|
|
|
|
<div class="titre"></div>
|
|
|
|
"""
|
2022-09-30 16:20:51 +02:00
|
|
|
)
|
2022-12-08 03:02:40 +01:00
|
|
|
for ue in ues:
|
|
|
|
dec_ue = decisions_ues[ue.id]
|
|
|
|
H.append("""<div class="but_niveau_titre"><div></div></div>""")
|
|
|
|
H.append(
|
|
|
|
_gen_but_niveau_ue(
|
|
|
|
ue,
|
|
|
|
dec_ue,
|
|
|
|
disabled=read_only,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
H.append(
|
|
|
|
"""<div style=""></div>
|
|
|
|
<div class=""></div>"""
|
|
|
|
)
|
|
|
|
H.append("</div>") # but_annee
|
2022-09-30 16:20:51 +02:00
|
|
|
|
|
|
|
if read_only:
|
|
|
|
H.append(
|
|
|
|
"""<div class="but_explanation">
|
|
|
|
Vous n'avez pas la permission de modifier ces décisions.
|
|
|
|
Les champs entourés en vert sont enregistrés.</div>"""
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
if formsemestre.semestre_id < formsemestre.formation.get_parcours().NB_SEM:
|
|
|
|
H.append(
|
|
|
|
f"""
|
|
|
|
<div class="but_settings">
|
|
|
|
<input type="checkbox" name="autorisation_passage" value="1" {
|
|
|
|
"checked" if est_autorise_a_passer else ""}>
|
|
|
|
<em>autoriser à passer dans le semestre S{formsemestre.semestre_id+1}</em>
|
|
|
|
</input>
|
|
|
|
</div>
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
H.append("""<div class="help">dernier semestre de la formation.</div>""")
|
|
|
|
H.append(
|
|
|
|
"""
|
|
|
|
<div class="but_buttons">
|
|
|
|
<input type="submit" value="Enregistrer ces décisions">
|
|
|
|
</div>
|
|
|
|
"""
|
|
|
|
)
|
2022-11-01 22:51:50 +01:00
|
|
|
H.append(navigation_div)
|
2022-09-30 16:20:51 +02:00
|
|
|
return "\n".join(H)
|
|
|
|
|
|
|
|
|
|
|
|
# -------------
|
2022-06-29 21:16:49 +02:00
|
|
|
def infos_fiche_etud_html(etudid: int) -> str:
|
|
|
|
"""Section html pour fiche etudiant
|
|
|
|
provisoire pour BUT 2022
|
|
|
|
"""
|
|
|
|
etud: Identite = Identite.query.get_or_404(etudid)
|
|
|
|
inscriptions = (
|
|
|
|
FormSemestreInscription.query.join(FormSemestreInscription.formsemestre)
|
|
|
|
.filter(
|
|
|
|
FormSemestreInscription.etudid == etud.id,
|
|
|
|
)
|
|
|
|
.order_by(FormSemestre.date_debut)
|
|
|
|
)
|
|
|
|
formsemestres_but = [
|
|
|
|
i.formsemestre for i in inscriptions if i.formsemestre.formation.is_apc()
|
|
|
|
]
|
|
|
|
if len(formsemestres_but) == 0:
|
|
|
|
return ""
|
|
|
|
|
|
|
|
# temporaire quick & dirty: affiche le dernier
|
|
|
|
try:
|
|
|
|
deca = DecisionsProposeesAnnee(etud, formsemestres_but[-1])
|
2022-11-27 19:07:42 +01:00
|
|
|
if True: # len(deca.rcues_annee) > 0:
|
2022-06-30 08:59:19 +02:00
|
|
|
return f"""<div class="infos_but">
|
|
|
|
{show_etud(deca, read_only=True)}
|
|
|
|
</div>
|
|
|
|
"""
|
2022-06-29 21:16:49 +02:00
|
|
|
except ScoValueError:
|
|
|
|
pass
|
|
|
|
|
|
|
|
return ""
|