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

Simplify menu

parent c3b2b887
No related branches found
No related tags found
1 merge request!1Reformat and cleanup
...@@ -3,18 +3,7 @@ from django.utils.translation import gettext_lazy as _ ...@@ -3,18 +3,7 @@ from django.utils.translation import gettext_lazy as _
MENUS = { MENUS = {
"NAV_MENU_CORE": [ "NAV_MENU_CORE": [
{ {
"name": _("Vouchers"), "name": _("Events"),
"url": "vouchers",
"icon": "confirmation_number",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.view_vouchers_rule",
)
],
},
{
"name": _("Event management"),
"url": "#", "url": "#",
"icon": "event_note", "icon": "event_note",
"root": True, "root": True,
...@@ -26,18 +15,18 @@ MENUS = { ...@@ -26,18 +15,18 @@ MENUS = {
], ],
"submenu": [ "submenu": [
{ {
"name": _("Create event"), "name": _("Vouchers"),
"url": "create_event", "url": "vouchers",
"icon": "event_available", "icon": "confirmation_number",
"validators": [ "validators": [
( (
"aleksis.core.util.predicates.permission_validator", "aleksis.core.util.predicates.permission_validator",
"paweljong.create_events_rule", "paweljong.view_vouchers_rule",
) )
], ],
}, },
{ {
"name": _("Manage feedback aspects"), "name": _("Feedback aspects"),
"url": "feedback_aspects", "url": "feedback_aspects",
"icon": "rate_review", "icon": "rate_review",
"validators": [ "validators": [
...@@ -47,6 +36,18 @@ MENUS = { ...@@ -47,6 +36,18 @@ MENUS = {
) )
], ],
}, },
{
"name": _("Terms"),
"url": "terms",
"icon": "gavel",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.view_terms_rule",
)
],
},
{ {
"name": _("Generate participant list"), "name": _("Generate participant list"),
"url": "generate_lists", "url": "generate_lists",
...@@ -59,7 +60,7 @@ MENUS = { ...@@ -59,7 +60,7 @@ MENUS = {
], ],
}, },
{ {
"name": _("Manage upcoming events"), "name": _("Upcoming events"),
"url": "manage_events", "url": "manage_events",
"icon": "edit", "icon": "edit",
"validators": [ "validators": [
...@@ -70,7 +71,7 @@ MENUS = { ...@@ -70,7 +71,7 @@ MENUS = {
], ],
}, },
{ {
"name": _("Manage registrations"), "name": _("Registrations"),
"url": "registrations", "url": "registrations",
"icon": "how_to_reg", "icon": "how_to_reg",
"validators": [ "validators": [
......
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