1
0
forked from ScoDoc/ScoDoc

lien inscription ailleurs sur page etud

This commit is contained in:
Emmanuel Viennet 2021-09-25 15:12:13 +02:00
parent 671ef6a7fa
commit 14d533b38a
3 changed files with 17 additions and 6 deletions

View File

@ -255,10 +255,19 @@ def ficheEtud(etudid=None, REQUEST=None):
with_all_columns=False,
a_url="Notes/",
)
info["link_bul_pdf"] = (
'<span class="link_bul_pdf"><a class="stdlink" href="Notes/etud_bulletins_pdf?etudid=%(etudid)s">tous les bulletins</a></span>'
% etud
)
info[
"link_bul_pdf"
] = f"""<span class="link_bul_pdf"><a class="stdlink" href="{
url_for("notes.etud_bulletins_pdf", scodoc_dept=g.scodoc_dept, etudid=etudid)
}">tous les bulletins</a></span>"""
if authuser.has_permission(Permission.ScoEtudInscrit):
info[
"link_inscrire_ailleurs"
] = f"""<span class="link_bul_pdf"><a class="stdlink" href="{
url_for("notes.formsemestre_inscription_with_modules_form", scodoc_dept=g.scodoc_dept, etudid=etudid)
}">inscrire à un autre semestre</a></span>"""
else:
info["link_inscrire_ailleurs"] = ""
else:
# non inscrit
l = ["<p><b>Etudiant%s non inscrit%s" % (info["ne"], info["ne"])]
@ -393,10 +402,11 @@ def ficheEtud(etudid=None, REQUEST=None):
"inscriptions_mkup"
] = """<div class="ficheinscriptions" id="ficheinscriptions">
<div class="fichetitre">Parcours</div>%s
%s
%s %s
</div>""" % (
info["liste_inscriptions"],
info["link_bul_pdf"],
info["link_inscrire_ailleurs"],
)
#

View File

@ -688,6 +688,7 @@ td.fichetitre2 .fl {
span.link_bul_pdf {
font-size: 80%;
padding-right: 2em;
}
/* Page accueil Sco */

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.0.37"
SCOVERSION = "9.0.38"
SCONAME = "ScoDoc"