1
0
forked from ScoDoc/ScoDoc

Menu groupes: met en avant l'éditeur de partition

This commit is contained in:
Emmanuel Viennet 2023-02-16 14:12:59 +01:00
parent cc977da44e
commit 08c536e777

View File

@ -338,7 +338,16 @@ def formsemestre_status_menubar(formsemestre: FormSemestre) -> str:
"helpmsg": "Accès aux listes des groupes d'étudiants", "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", "endpoint": "scolar.edit_partition_form",
"args": {"formsemestre_id": formsemestre_id}, "args": {"formsemestre_id": formsemestre_id},
"enabled": sco_groups.sco_permissions_check.can_change_groups( "enabled": sco_groups.sco_permissions_check.can_change_groups(
@ -362,19 +371,12 @@ def formsemestre_status_menubar(formsemestre: FormSemestre) -> str:
"enabled": enabled, "enabled": enabled,
} }
) )
menu_groupes.append(
{"title": "Modifier les groupes", "submenu": submenu, "enabled": enabled}
)
menu_groupes.append( menu_groupes.append(
{ {
"title": "Expérimental: éditeur de partitions", "title": "Ancienne page édition groupes",
"endpoint": "scolar.partition_editor", "submenu": submenu,
"args": {"formsemestre_id": formsemestre_id}, "enabled": enabled,
"enabled": sco_groups.sco_permissions_check.can_change_groups( }
formsemestre_id
),
"helpmsg": "Une spécialité de Mulhouse",
},
) )
menu_notes = [ menu_notes = [