Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
7c794c01
Commit
7c794c01
authored
Feb 21, 2024
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Tableau bord semestre: avertissement modules non conformes
parent
624ea39e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/scodoc/sco_formsemestre_status.py
+22
-11
22 additions, 11 deletions
app/scodoc/sco_formsemestre_status.py
app/static/css/scodoc.css
+17
-1
17 additions, 1 deletion
app/static/css/scodoc.css
with
39 additions
and
12 deletions
app/scodoc/sco_formsemestre_status.py
+
22
−
11
View file @
7c794c01
...
@@ -1173,7 +1173,8 @@ def formsemestre_tableau_modules(
...
@@ -1173,7 +1173,8 @@ def formsemestre_tableau_modules(
moduleimpl_id
=
modimpl
.
id
,
moduleimpl_id
=
modimpl
.
id
,
)
)
mod_descr
=
"
Module
"
+
(
mod
.
titre
or
""
)
mod_descr
=
"
Module
"
+
(
mod
.
titre
or
""
)
if
mod
.
is_apc
():
is_apc
=
mod
.
is_apc
()
# SAE ou ressource
if
is_apc
:
coef_descr
=
"
,
"
.
join
(
coef_descr
=
"
,
"
.
join
(
[
[
f
"
{
ue
.
acronyme
}
:
{
co
}
"
f
"
{
ue
.
acronyme
}
:
{
co
}
"
...
@@ -1193,6 +1194,7 @@ def formsemestre_tableau_modules(
...
@@ -1193,6 +1194,7 @@ def formsemestre_tableau_modules(
[
u
.
get_nomcomplet
()
for
u
in
modimpl
.
enseignants
]
[
u
.
get_nomcomplet
()
for
u
in
modimpl
.
enseignants
]
)
)
mod_nb_inscrits
=
nt
.
modimpls_results
[
modimpl
.
id
].
nb_inscrits_module
mod_nb_inscrits
=
nt
.
modimpls_results
[
modimpl
.
id
].
nb_inscrits_module
mod_is_conforme
=
modimpl
.
check_apc_conformity
(
nt
)
ue
=
modimpl
.
module
.
ue
ue
=
modimpl
.
module
.
ue
if
show_ues
and
(
prev_ue_id
!=
ue
.
id
):
if
show_ues
and
(
prev_ue_id
!=
ue
.
id
):
prev_ue_id
=
ue
.
id
prev_ue_id
=
ue
.
id
...
@@ -1200,10 +1202,12 @@ def formsemestre_tableau_modules(
...
@@ -1200,10 +1202,12 @@ def formsemestre_tableau_modules(
if
use_ue_coefs
:
if
use_ue_coefs
:
titre
+=
f
"""
<b>(coef.
{
ue
.
coefficient
or
0.0
}
)</b>
"""
titre
+=
f
"""
<b>(coef.
{
ue
.
coefficient
or
0.0
}
)</b>
"""
H
.
append
(
H
.
append
(
f
"""
<tr class=
"
formsemestre_status_ue
"
><td colspan=
"
4
"
>
f
"""
<tr class=
"
formsemestre_status_ue
"
>
<td colspan=
"
4
"
>
<span class=
"
status_ue_acro
"
>
{
ue
.
acronyme
}
</span>
<span class=
"
status_ue_acro
"
>
{
ue
.
acronyme
}
</span>
<span class=
"
status_ue_title
"
>
{
titre
}
</span>
<span class=
"
status_ue_title
"
>
{
titre
}
</span>
</td><td colspan=
"
2
"
>
"""
</td>
<td colspan=
"
2
"
>
"""
)
)
expr
=
sco_compute_moy
.
get_ue_expression
(
expr
=
sco_compute_moy
.
get_ue_expression
(
...
@@ -1226,21 +1230,23 @@ def formsemestre_tableau_modules(
...
@@ -1226,21 +1230,23 @@ def formsemestre_tableau_modules(
fontorange
=
""
fontorange
=
""
etat
=
sco_evaluations
.
do_evaluation_etat_in_mod
(
nt
,
modimpl
)
etat
=
sco_evaluations
.
do_evaluation_etat_in_mod
(
nt
,
modimpl
)
# if nt.parcours.APC_SAE:
# tbd style si module non conforme
if
(
if
(
etat
[
"
nb_evals_completes
"
]
>
0
etat
[
"
nb_evals_completes
"
]
>
0
and
etat
[
"
nb_evals_en_cours
"
]
==
0
and
etat
[
"
nb_evals_en_cours
"
]
==
0
and
etat
[
"
nb_evals_vides
"
]
==
0
and
etat
[
"
nb_evals_vides
"
]
==
0
and
not
etat
[
"
attente
"
]
and
not
etat
[
"
attente
"
]
):
):
H
.
append
(
f
'
<
tr
class
=
"
formsemestre_status_green
{
fontorange
}
"
>
'
)
tr
_
class
es
=
f
"
formsemestre_status_green
{
fontorange
}
"
else
:
else
:
H
.
append
(
f
'
<tr class=
"
formsemestre_status
{
fontorange
}
"
>
'
)
tr_classes
=
f
"
formsemestre_status
{
fontorange
}
"
if
etat
[
"
attente
"
]:
tr_classes
+=
"
modimpl_attente
"
if
not
mod_is_conforme
:
tr_classes
+=
"
modimpl_non_conforme
"
H
.
append
(
H
.
append
(
f
"""
f
"""
<td class=
"
formsemestre_status_code
""
><a
<tr class=
"
{
tr_classes
}
"
>
<td class=
"
formsemestre_status_code
"
><a
href=
"
{
moduleimpl_status_url
}
"
href=
"
{
moduleimpl_status_url
}
"
title=
"
{
mod_descr
}
"
class=
"
stdlink
"
>
{
mod
.
code
}
</a></td>
title=
"
{
mod_descr
}
"
class=
"
stdlink
"
>
{
mod
.
code
}
</a></td>
<td class=
"
scotext
"
><a href=
"
{
moduleimpl_status_url
}
"
title=
"
{
mod_descr
}
"
<td class=
"
scotext
"
><a href=
"
{
moduleimpl_status_url
}
"
title=
"
{
mod_descr
}
"
...
@@ -1302,6 +1308,11 @@ def formsemestre_tableau_modules(
...
@@ -1302,6 +1308,11 @@ def formsemestre_tableau_modules(
f
"""
<span><a class=
"
redlink
"
href=
"
{
moduleimpl_status_url
}
"
f
"""
<span><a class=
"
redlink
"
href=
"
{
moduleimpl_status_url
}
"
title=
"
Il y a des notes en attente
"
>[en attente]</a></span>
"""
title=
"
Il y a des notes en attente
"
>[en attente]</a></span>
"""
)
)
if
not
mod_is_conforme
:
H
.
append
(
f
"""
<span><a class=
"
redlink
"
href=
"
{
moduleimpl_status_url
}
"
title=
"
évaluations non conformes
"
>[non conforme]</a></span>
"""
)
elif
mod
.
module_type
==
ModuleType
.
MALUS
:
elif
mod
.
module_type
==
ModuleType
.
MALUS
:
nb_malus_notes
=
sum
(
nb_malus_notes
=
sum
(
e
[
"
etat
"
][
"
nb_notes
"
]
for
e
in
nt
.
get_mod_evaluation_etat_list
(
modimpl
)
e
[
"
etat
"
][
"
nb_notes
"
]
for
e
in
nt
.
get_mod_evaluation_etat_list
(
modimpl
)
...
...
This diff is collapsed.
Click to expand it.
app/static/css/scodoc.css
+
17
−
1
View file @
7c794c01
...
@@ -1801,11 +1801,27 @@ table.formsemestre_status {
...
@@ -1801,11 +1801,27 @@ table.formsemestre_status {
tr
.formsemestre_status
{
tr
.formsemestre_status
{
background-color
:
rgb
(
90%
,
90%
,
90%
);
background-color
:
rgb
(
90%
,
90%
,
90%
);
}
}
table
.formsemestre_status
tr
td
:first-child
{
padding-left
:
4px
;
}
table
.formsemestre_status
tr
td
:last-child
{
padding-right
:
8px
;
}
tr
.formsemestre_status_green
{
tr
.formsemestre_status_green
{
background-color
:
#eff7f2
;
background-color
:
#eff7f2
;
}
}
tr
.modimpl_non_conforme
td
{
background-color
:
#ffc458
;
}
tr
.modimpl_non_conforme
td
,
tr
.modimpl_attente
td
{
padding-top
:
4px
;
padding-bottom
:
4px
;
}
table
.formsemestre_status
a
.redlink
{
text-decoration
:
none
;
}
tr
.formsemestre_status_ue
{
tr
.formsemestre_status_ue
{
background-color
:
rgb
(
90%
,
90%
,
90%
);
background-color
:
rgb
(
90%
,
90%
,
90%
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment