From 08c536e777127b643830e12b7086cfa1eb22807a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 16 Feb 2023 14:12:59 +0100 Subject: [PATCH] =?UTF-8?q?Menu=20groupes:=20met=20en=20avant=20l'=C3=A9di?= =?UTF-8?q?teur=20de=20partition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_status.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 3e4446bb2..6d6477552 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -338,7 +338,16 @@ def formsemestre_status_menubar(formsemestre: FormSemestre) -> str: "helpmsg": "Accès aux listes des groupes d'étudiants", }, { - "title": "Créer/modifier les partitions...", + "title": "Modifier groupes et partitions", + "endpoint": "scolar.partition_editor", + "args": {"formsemestre_id": formsemestre_id}, + "enabled": sco_groups.sco_permissions_check.can_change_groups( + formsemestre_id + ), + "helpmsg": "Editeur de partitions", + }, + { + "title": "Ancienne page édition partitions", "endpoint": "scolar.edit_partition_form", "args": {"formsemestre_id": formsemestre_id}, "enabled": sco_groups.sco_permissions_check.can_change_groups( @@ -362,19 +371,12 @@ def formsemestre_status_menubar(formsemestre: FormSemestre) -> str: "enabled": enabled, } ) - menu_groupes.append( - {"title": "Modifier les groupes", "submenu": submenu, "enabled": enabled} - ) menu_groupes.append( { - "title": "Expérimental: éditeur de partitions", - "endpoint": "scolar.partition_editor", - "args": {"formsemestre_id": formsemestre_id}, - "enabled": sco_groups.sco_permissions_check.can_change_groups( - formsemestre_id - ), - "helpmsg": "Une spécialité de Mulhouse", - }, + "title": "Ancienne page édition groupes", + "submenu": submenu, + "enabled": enabled, + } ) menu_notes = [