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"]: if E["jour"]:
group_id = sco_groups.get_default_group(formsemestre_id) group_id = sco_groups.get_default_group(formsemestre_id)
H.append( H.append(
'<span class="noprint"><a href="%s/Absences/EtatAbsencesDate?group_ids=%s&date=%s">(absences ce jour)</a></span>' f"""<span class="noprint"><a href="{url_for(
% ( 'absences.EtatAbsencesDate',
scu.ScoURL(), scodoc_dept=g.scodoc_dept,
group_id, group_ids=group_id,
urllib.parse.quote(E["jour"], safe=""), date=E["jour"]
) )
}">(absences ce jour)</a></span>"""
) )
H.append( H.append(
'</p><p>Coefficient dans le module: <b>%s</b>, notes sur <span id="eval_note_max">%g</span> ' '</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: if linkabs:
H.append( H.append(
'<a class="stdlink" href="Absences/doSignaleAbsence?etudid=%s&datedebut=%s&datefin=%s&demijournee=%s&moduleimpl_id=%s">signaler cette absence</a>' f"""<a class="stdlink" href="{url_for(
% ( 'absences.doSignaleAbsence',
etud["etudid"], scodoc_dept=g.scodoc_dept,
urllib.parse.quote(E["jour"]), etudid=etud["etudid"],
urllib.parse.quote(E["jour"]), datedebut=E["jour"],
demijournee, datefin=E["jour"],
E["moduleimpl_id"], demijournee=demijournee,
moduleimpl_id=E["moduleimpl_id"],
) )
}">signaler cette absence</a>"""
) )
H.append("</li>") H.append("</li>")
H.append("</ul>") H.append("</ul>")

View File

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