This commit is contained in:
Emmanuel Viennet 2021-11-06 16:35:21 +01:00
parent 5f19931d63
commit f6dfa912d7
3 changed files with 17 additions and 14 deletions

View File

@ -1078,12 +1078,13 @@ def evaluation_describe(evaluation_id="", edit_in_place=True):
if E["jour"]:
group_id = sco_groups.get_default_group(formsemestre_id)
H.append(
'<span class="noprint"><a href="%s/Absences/EtatAbsencesDate?group_ids=%s&date=%s">(absences ce jour)</a></span>'
% (
scu.ScoURL(),
group_id,
urllib.parse.quote(E["jour"], safe=""),
f"""<span class="noprint"><a href="{url_for(
'absences.EtatAbsencesDate',
scodoc_dept=g.scodoc_dept,
group_ids=group_id,
date=E["jour"]
)
}">(absences ce jour)</a></span>"""
)
H.append(
'</p><p>Coefficient dans le module: <b>%s</b>, notes sur <span id="eval_note_max">%g</span> '

View File

@ -811,14 +811,16 @@ def evaluation_check_absences_html(evaluation_id, with_header=True, show_ok=True
)
if linkabs:
H.append(
'<a class="stdlink" href="Absences/doSignaleAbsence?etudid=%s&datedebut=%s&datefin=%s&demijournee=%s&moduleimpl_id=%s">signaler cette absence</a>'
% (
etud["etudid"],
urllib.parse.quote(E["jour"]),
urllib.parse.quote(E["jour"]),
demijournee,
E["moduleimpl_id"],
f"""<a class="stdlink" href="{url_for(
'absences.doSignaleAbsence',
scodoc_dept=g.scodoc_dept,
etudid=etud["etudid"],
datedebut=E["jour"],
datefin=E["jour"],
demijournee=demijournee,
moduleimpl_id=E["moduleimpl_id"],
)
}">signaler cette absence</a>"""
)
H.append("</li>")
H.append("</ul>")

View File

@ -136,7 +136,7 @@ def moduleimpl_evaluation_menu(evaluation_id, nbnotes=0):
"title": "Absences ce jour",
"endpoint": "absences.EtatAbsencesDate",
"args": {
"date": urllib.parse.quote(E["jour"], safe=""),
"date": E["jour"],
"group_ids": group_id,
},
"enabled": E["jour"],