fix routes
This commit is contained in:
parent
20337bc546
commit
d64e6632f0
@ -247,7 +247,7 @@ def etudarchive_generate_excel_sample(context, group_id=None, REQUEST=None):
|
||||
|
||||
|
||||
def etudarchive_import_files_form(context, group_id, REQUEST=None):
|
||||
"""Formualaire pour importation fichiers d'un groupe"""
|
||||
"""Formulaire pour importation fichiers d'un groupe"""
|
||||
H = [
|
||||
html_sco_header.sco_header(
|
||||
context, REQUEST, page_title="Import de fichiers associés aux étudiants"
|
||||
|
@ -102,7 +102,12 @@ def _menuScolarite(context, authuser, sem, etudid):
|
||||
"enabled": authuser.has_permission(Permission.ScoEtudInscrit)
|
||||
and not locked,
|
||||
},
|
||||
{"title": def_title, "endpoint": def_url, "enabled": def_enabled},
|
||||
{
|
||||
"title": def_title,
|
||||
"endpoint": def_url,
|
||||
"args": args,
|
||||
"enabled": def_enabled,
|
||||
},
|
||||
{
|
||||
"title": "Inscrire à un module optionnel (ou au sport)",
|
||||
"endpoint": "notes.formsemestre_inscription_option",
|
||||
@ -113,6 +118,7 @@ def _menuScolarite(context, authuser, sem, etudid):
|
||||
{
|
||||
"title": "Désinscrire (en cas d'erreur)",
|
||||
"endpoint": "notes.formsemestre_desinscription",
|
||||
"args": args,
|
||||
"enabled": authuser.has_permission(Permission.ScoEtudInscrit)
|
||||
and not locked,
|
||||
},
|
||||
@ -125,6 +131,7 @@ def _menuScolarite(context, authuser, sem, etudid):
|
||||
{
|
||||
"title": "Enregistrer un semestre effectué ailleurs",
|
||||
"endpoint": "notes.formsemestre_ext_create_form",
|
||||
"args": args,
|
||||
"enabled": authuser.has_permission(Permission.ScoImplement),
|
||||
},
|
||||
]
|
||||
|
@ -1428,6 +1428,7 @@ sco_publish(
|
||||
"/formsemestre_inscription_option",
|
||||
sco_formsemestre_inscriptions.formsemestre_inscription_option,
|
||||
Permission.ScoEtudInscrit,
|
||||
methods=["GET", "POST"],
|
||||
)
|
||||
sco_publish(
|
||||
"/do_moduleimpl_incription_options",
|
||||
|
@ -915,7 +915,7 @@ def _do_dem_or_def_etud(
|
||||
return REQUEST.RESPONSE.redirect("ficheEtud?etudid=" + etudid)
|
||||
|
||||
|
||||
@bp.route("/doCancelDem")
|
||||
@bp.route("/doCancelDem", methods=["GET", "POST"])
|
||||
@permission_required(Permission.ScoEtudInscrit)
|
||||
@scodoc7func(context)
|
||||
def doCancelDem(
|
||||
@ -937,7 +937,7 @@ def doCancelDem(
|
||||
)
|
||||
|
||||
|
||||
@bp.route("/doCancelDef")
|
||||
@bp.route("/doCancelDef", methods=["GET", "POST"])
|
||||
@permission_required(Permission.ScoEtudInscrit)
|
||||
@scodoc7func(context)
|
||||
def doCancelDef(
|
||||
|
Loading…
Reference in New Issue
Block a user