1
0
forked from ScoDoc/ScoDoc

sco_groups_view : btn -> a.stdlink closes #898

This commit is contained in:
Iziram 2024-05-31 09:48:45 +02:00
parent 21c0625147
commit 7bdae70d38

View File

@ -978,7 +978,7 @@ def form_choix_jour_saisie_hebdo(groups_infos, moduleimpl_id=None):
if not authuser.has_permission(Permission.AbsChange):
return ""
return f"""
<button onclick="window.location='{
<a class="stdlink" href="{
url_for(
"assiduites.signal_assiduites_group",
scodoc_dept=g.scodoc_dept,
@ -987,7 +987,7 @@ def form_choix_jour_saisie_hebdo(groups_infos, moduleimpl_id=None):
formsemestre_id=groups_infos.formsemestre_id,
moduleimpl_id="" if moduleimpl_id is None else moduleimpl_id
)
}';">Saisie du jour ({datetime.date.today().strftime('%d/%m/%Y')})</button>
}">Saisie du jour ({datetime.date.today().strftime('%d/%m/%Y')})</a>
"""
@ -1000,14 +1000,14 @@ def form_choix_saisie_semaine(groups_infos):
moduleimpl_id = query_args.get("moduleimpl_id", [None])[0]
semaine = datetime.datetime.now().strftime("%G-W%V")
return f"""
<button onclick="window.location='{url_for(
<a class="stdlink" href="{url_for(
"assiduites.signal_assiduites_hebdo",
group_ids=",".join(map(str,groups_infos.group_ids)),
week=semaine,
scodoc_dept=g.scodoc_dept,
formsemestre_id=groups_infos.formsemestre_id,
moduleimpl_id=moduleimpl_id
)}';">Saisie à la semaine</button>
)}">Saisie à la semaine (semaine {''.join(semaine[-2:])})</a>
"""