Skip to content
Snippets Groups Projects
Commit dc6e7832 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Rewrite menu

parent bf69fc8c
No related branches found
No related tags found
1 merge request!1Reformat and cleanup
...@@ -2,46 +2,16 @@ from django.utils.translation import gettext_lazy as _ ...@@ -2,46 +2,16 @@ from django.utils.translation import gettext_lazy as _
MENUS = { MENUS = {
"NAV_MENU_CORE": [ "NAV_MENU_CORE": [
{
"name": _("Events"),
"url": "events",
"icon": "event",
},
{ {
"name": _("Vouchers"), "name": _("Vouchers"),
"url": "#", "url": "vouchers",
"icon": "confirmation_number", "icon": "confirmation_number",
"root": True,
"validators": [ "validators": [
( (
"aleksis.core.util.predicates.permission_validator", "aleksis.core.util.predicates.permission_validator",
"paweljong.view_vouchers_rule", "paweljong.view_vouchers_rule",
) )
], ],
"submenu": [
{
"name": _("Voucher overview"),
"url": "vouchers",
"icon": "confirmation_number",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.change_vouchers_rule",
)
],
},
{
"name": _("Create voucher"),
"url": "create_vouchers",
"icon": "post_add",
"validator": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.create_vouchers_rule",
)
],
},
],
}, },
{ {
"name": _("Event management"), "name": _("Event management"),
...@@ -91,7 +61,7 @@ MENUS = { ...@@ -91,7 +61,7 @@ MENUS = {
{ {
"name": _("Manage upcoming events"), "name": _("Manage upcoming events"),
"url": "manage_events", "url": "manage_events",
"icon": "change", "icon": "edit",
"validators": [ "validators": [
( (
"aleksis.core.util.predicates.permission_validator", "aleksis.core.util.predicates.permission_validator",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment