Améliore signalement des sem. verrouillés sur page édition programme

This commit is contained in:
Emmanuel Viennet 2023-02-22 22:45:39 +01:00 committed by iziram
parent 784b3eea8c
commit 88320ce95f
3 changed files with 21 additions and 4 deletions

View File

@ -777,11 +777,19 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
# Formation APC (BUT) ?
if is_apc:
lock_info = (
"""<span class="lock_info">verrouillé (voir liste des semestres utilisateurs
en bas de page)</span>
"""
if locked
else ""
)
H.append(
f"""<div class="formation_apc_infos">
<div class="ue_list_tit">Formation par compétences (BUT)
- Semestre {_html_select_semestre_idx(formation_id, semestre_ids, semestre_idx)}
- {_html_select_semestre_idx(formation_id, semestre_ids, semestre_idx)}
</form>
{lock_info}
</div>
"""
)

View File

@ -414,7 +414,7 @@ def list_synch(sem, anneeapogee=None):
etudid = key2etudid[key]
etuds = sco_etud.identite_list(cnx, {"etudid": etudid})
if not etuds: # ? cela ne devrait pas arriver XXX
log(f"XXX key2etud etudid={{etudid}}, type {{type(etudid)}}")
log(f"XXX key2etud etudid={etudid}, type {type(etudid)}")
etud = etuds[0]
etud["inscrit"] = is_inscrit # checkbox state
etud[

View File

@ -2239,7 +2239,16 @@ span.notes_module_list_buts {
div.ue_list_tit {
font-weight: bold;
margin-top: 5px;
margin-top: 8px;
}
div.ue_list_tit form {
display: inline-block;
}
div.ue_list_tit span.lock_info {
color: red;
margin-left: 8px;
}
ul.apc_ue_list {