This commit is contained in:
Emmanuel Viennet 2024-10-24 10:49:42 +02:00
commit b5d5bb3b91
7 changed files with 45 additions and 25 deletions

View File

@ -779,7 +779,7 @@ def _make_listes_sem(formsemestre: FormSemestre) -> str:
})</span></h3>""" })</span></h3>"""
) )
# #
H.append('<div class="sem-groups-abs space-before-18">') H.append('<div class="sem-groups-abs space-before-8">')
disable_abs: str | bool = scass.has_assiduites_disable_pref(formsemestre) disable_abs: str | bool = scass.has_assiduites_disable_pref(formsemestre)
show_abs: str = "hidden" if disable_abs else "" show_abs: str = "hidden" if disable_abs else ""
@ -1309,6 +1309,11 @@ def formsemestre_tableau_modules(
tr_classes += " modimpl_non_conforme" tr_classes += " modimpl_non_conforme"
if etat["nb_evals_blocked"] > 0: if etat["nb_evals_blocked"] > 0:
tr_classes += " modimpl_has_blocked" tr_classes += " modimpl_has_blocked"
classes = "formsemestre_status_link"
if current_user.id == modimpl.responsable_id or current_user.id in (
u.id for u in modimpl.enseignants
):
classes += " enseignant"
H.append( H.append(
f""" f"""
<tr class="{tr_classes}"> <tr class="{tr_classes}">
@ -1316,7 +1321,7 @@ def formsemestre_tableau_modules(
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}"
class="formsemestre_status_link">{mod.abbrev or mod.titre or ""}</a> class="{classes}">{mod.abbrev or mod.titre or ""}</a>
</td> </td>
<td class="formsemestre_status_inscrits">{mod_nb_inscrits}</td> <td class="formsemestre_status_inscrits">{mod_nb_inscrits}</td>
<td class="resp scotext"> <td class="resp scotext">

View File

@ -4,13 +4,14 @@
:root { :root {
--sco-content-min-width: 600px; --sco-content-min-width: 600px;
--sco-content-max-width: 1024px; --sco-content-max-width: 1024px;
--sco-color-explication: rgb(10, 58, 140); --sco-deep-blue: rgb(4, 16, 159);
--sco-color-explication: rgb(4, 16, 159);
--sco-color-background: rgb(242, 242, 238); --sco-color-background: rgb(242, 242, 238);
--sco-color-box-bg: rgb(243, 240, 228); --sco-color-box-bg: rgb(243, 240, 228);
--sco-color-mod-std: #afafc2; --sco-color-mod-std: rgb(175, 175, 194);
--sco-color-ressources: #f8c844; --sco-color-ressources: rgb(248, 200, 68);
--sco-color-saes: #c6ffab; --sco-color-saes: rgb(198, 255, 171);
--sco-color-ues: #0051a9; --sco-color-ues: rgb(0, 81, 169);
} }
html, html,
@ -41,7 +42,7 @@ h3 {
} }
body a { body a {
color: rgb(4, 16, 159); color: var(--sco-deep-blue);
} }
details>summary:first-of-type { details>summary:first-of-type {
@ -63,6 +64,11 @@ div.sco-app-content {
margin-bottom: 18px !important; margin-bottom: 18px !important;
} }
.space-before-8 {
margin-top: 8px !important;
}
.space-before-18 { .space-before-18 {
margin-top: 18px !important; margin-top: 18px !important;
} }
@ -182,7 +188,7 @@ div#gtrcontent {
.gtrcontent a, .gtrcontent a,
.gtrcontent a:visited { .gtrcontent a:visited {
color: rgb(4, 16, 159); color: var(--sco-deep-blue);
text-decoration: none; text-decoration: none;
} }
@ -1083,7 +1089,7 @@ span.linktitresem a:visited {
a.stdlink, a.stdlink,
a.stdlink:visited { a.stdlink:visited {
color: blue; color: var(--sco-deep-blue);
text-decoration: underline; text-decoration: underline;
} }
@ -1532,7 +1538,7 @@ table.notes_evaluation tr td.tdlink a.discretelink:hover {
table.notes_evaluation tr td.tdlink a.discretelink, table.notes_evaluation tr td.tdlink a.discretelink,
table.notes_evaluation tr td.tdlink a.discretelink:visited { table.notes_evaluation tr td.tdlink a.discretelink:visited {
color: blue; color: var(--sco-deep-blue);
text-decoration: underline; text-decoration: underline;
} }
@ -1874,6 +1880,7 @@ div.formsemestre_status {
border-radius: 8px; border-radius: 8px;
padding: 2px 6px 2px 16px; padding: 2px 6px 2px 16px;
margin-right: 10px; margin-right: 10px;
width: fit-content;
} }
.formsemestre_status_warning, .formsemestre_status_warning,
@ -1989,7 +1996,8 @@ table.formsemestre_status td.malus a {
color: red; color: red;
} }
a.formsemestre_status_link { a.formsemestre_status_link,
a.formsemestre_status_link:visited {
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
@ -1999,6 +2007,12 @@ a.formsemestre_status_link:hover {
text-decoration: underline; text-decoration: underline;
} }
a.formsemestre_status_link.enseignant,
a.formsemestre_status_link.enseignant:visited {
color: var(--sco-deep-blue);
}
td.formsemestre_status_inscrits { td.formsemestre_status_inscrits {
text-align: center; text-align: center;
} }
@ -2066,8 +2080,7 @@ ul.ue_inscr_list li.etud {
.sem-groups-abs { .sem-groups-abs {
background-color: rgb(137, 137, 137); background-color: rgb(137, 137, 137);
border-radius: 16px; border-radius: 16px;
padding: 16px; padding: 8px;
width: fit-content;
} }
.sem-groups-abs h4 { .sem-groups-abs h4 {

View File

@ -83,7 +83,7 @@
.scodoc-index a { .scodoc-index a {
font-size: 14pt; font-size: 14pt;
display: flex; display: flex;
color: rgb(4, 16, 159); color: var(--sco-deep-blue);
width: 100%; width: 100%;
} }

View File

@ -14,18 +14,20 @@
{% if not etuds %} {% if not etuds %}
<h3>aucun étudiant sans notes</h3> <h3>aucun étudiant sans notes</h3>
{% else %} {% else %}
<h3>Étudiants sans notes:</h3> <h3>Étudiants sans notes&nbsp;:</h3>
<ul> <ul class="sco-links">
{% for etud in etuds %} {% for etud in etuds %}
<li> <li>
<a href="{{ <a class="stdlink" href="{{ etud.url_fiche() | safe }}">
url_for('scolar.fiche_etud', scodoc_dept=g.scodoc_dept, etudid=etud.id) {{etud.nom_prenom()}}
}}" class="discretelink">{{etud.nom_prenom()}}</a> </a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<div class="help">
<form class="sco-std-form" method="post"> Ces étudiants n'ont aucune note dans le semestre.
</div>
<form class="sco-std-form space-before-18" method="post">
<input type="hidden" name="formsemestre_id" value="{{sco.formsemestre.id}}"> <input type="hidden" name="formsemestre_id" value="{{sco.formsemestre.id}}">
<input type="hidden" name="etudid" value="{{etudid or ''}}"> <input type="hidden" name="etudid" value="{{etudid or ''}}">

View File

@ -114,7 +114,7 @@
{{ sco.SCOVERSION }} {{ sco.SCOVERSION }}
</div> </div>
{% if DEBUG %} {% if DEBUG %}
<div style="color:gold; background-color:navy; margin-top: 8px;">DEBUG</div> <div style="color:gold; background-color: var(--sco-deep-blue); margin-top: 8px;">DEBUG</div>
{% endif %} {% endif %}
</div> </div>
<!-- end of sidebar --> <!-- end of sidebar -->

View File

@ -976,7 +976,7 @@ def edit_enseignants_form(moduleimpl_id):
allowed_user_names = list(uid2display.values()) allowed_user_names = list(uid2display.values())
H = [ H = [
f"""<ul><li><b>{ f"""<ul class="sco-links"><li><b>{
uid2display.get(modimpl.responsable_id, modimpl.responsable_id) uid2display.get(modimpl.responsable_id, modimpl.responsable_id)
}</b> (responsable)</li>""" }</b> (responsable)</li>"""
] ]

View File

@ -3,7 +3,7 @@
"Infos sur version ScoDoc" "Infos sur version ScoDoc"
SCOVERSION = "9.7.33" SCOVERSION = "9.7.34"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"