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 _
MENUS = {
"NAV_MENU_CORE": [
{
"name": _("Vouchers"),
"url": "vouchers",
"icon": "confirmation_number",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.view_vouchers_rule",
)
],
},
{
"name": _("Event management"),
"name": _("Events"),
"url": "#",
"icon": "event_note",
"root": True,
......@@ -26,18 +15,18 @@ MENUS = {
],
"submenu": [
{
"name": _("Create event"),
"url": "create_event",
"icon": "event_available",
"name": _("Vouchers"),
"url": "vouchers",
"icon": "confirmation_number",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"paweljong.create_events_rule",
"paweljong.view_vouchers_rule",
)
],
},
{
"name": _("Manage feedback aspects"),
"name": _("Feedback aspects"),
"url": "feedback_aspects",
"icon": "rate_review",
"validators": [
......@@ -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"),
"url": "generate_lists",
......@@ -59,7 +60,7 @@ MENUS = {
],
},
{
"name": _("Manage upcoming events"),
"name": _("Upcoming events"),
"url": "manage_events",
"icon": "edit",
"validators": [
......@@ -70,7 +71,7 @@ MENUS = {
],
},
{
"name": _("Manage registrations"),
"name": _("Registrations"),
"url": "registrations",
"icon": "how_to_reg",
"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