forked from ScoDoc/ScoDoc
BUT: édition des coefs: visualise mods hors parcours
This commit is contained in:
parent
d5f1525ac6
commit
aeab3c752e
@ -65,6 +65,16 @@ div.title_STANDARD,
|
|||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='%239C92AC' fill-opacity='0.21'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E");
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='%239C92AC' fill-opacity='0.21'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.champs_coef_hors_parcours {
|
||||||
|
background: conic-gradient(rgb(255, 226, 226) 90deg,
|
||||||
|
white 90deg 180deg,
|
||||||
|
rgb(241, 241, 241) 180deg 270deg,
|
||||||
|
white 270deg);
|
||||||
|
background-size: 12px 12px;
|
||||||
|
background-repeat: repeat;
|
||||||
|
background-position: top left;
|
||||||
|
}
|
||||||
|
|
||||||
div.title_MALUS {
|
div.title_MALUS {
|
||||||
background-color: #ff4700;
|
background-color: #ff4700;
|
||||||
}
|
}
|
||||||
|
@ -124,11 +124,21 @@ def table_modules_ue_coefs(formation_id, semestre_idx=None, parcours_id: int = N
|
|||||||
for (row, mod) in enumerate(modules, start=2):
|
for (row, mod) in enumerate(modules, start=2):
|
||||||
style = "champs champs_" + scu.ModuleType(mod.module_type).name
|
style = "champs champs_" + scu.ModuleType(mod.module_type).name
|
||||||
for (col, ue) in enumerate(ues, start=2):
|
for (col, ue) in enumerate(ues, start=2):
|
||||||
|
# met en gris les coefs qui devraient être nuls
|
||||||
|
# car le module n'est pas dans le parcours de l'UE:
|
||||||
|
if (
|
||||||
|
(mod.parcours is not None)
|
||||||
|
and (ue.parcour_id is not None)
|
||||||
|
and ue.parcour_id not in (p.id for p in mod.parcours)
|
||||||
|
):
|
||||||
|
cell_style += style + " champs_coef_hors_parcours"
|
||||||
|
else:
|
||||||
|
cell_style = style
|
||||||
cells.append(
|
cells.append(
|
||||||
{
|
{
|
||||||
"x": col,
|
"x": col,
|
||||||
"y": row,
|
"y": row,
|
||||||
"style": style,
|
"style": cell_style,
|
||||||
"data": df[mod.id][ue.id] or "",
|
"data": df[mod.id][ue.id] or "",
|
||||||
"editable": mod.ue.type != UE_SPORT,
|
"editable": mod.ue.type != UE_SPORT,
|
||||||
"module_id": mod.id,
|
"module_id": mod.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user