1
0
forked from ScoDoc/ScoDoc

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
parent 8768f24387
commit 699f6419f3
3 changed files with 21 additions and 4 deletions

View File

@ -775,11 +775,19 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
# Formation APC (BUT) ? # Formation APC (BUT) ?
if is_apc: 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( H.append(
f"""<div class="formation_apc_infos"> f"""<div class="formation_apc_infos">
<div class="ue_list_tit">Formation par compétences (BUT) <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> </form>
{lock_info}
</div> </div>
""" """
) )
@ -985,7 +993,7 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
def _html_select_semestre_idx(formation_id, semestre_ids, semestre_idx): def _html_select_semestre_idx(formation_id, semestre_ids, semestre_idx):
htm = """<form method="get">Semestre: htm = """<form method="get">Semestre:
<select onchange="this.form.submit()" name="semestre_idx" id="semestre_idx" > <select onchange="this.form.submit()" name="semestre_idx" id="semestre_idx" >
""" """
for i in list(semestre_ids) + ["all"]: for i in list(semestre_ids) + ["all"]:

View File

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

View File

@ -2239,7 +2239,16 @@ span.notes_module_list_buts {
div.ue_list_tit { div.ue_list_tit {
font-weight: bold; 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 { ul.apc_ue_list {