Verified Commit 797aa1f3 authored by Jonathan Weth's avatar Jonathan Weth

Add menus.py

parent 2c1a0404
from django.utils.translation import ugettext_lazy as _
MENUS = {
"NAV_MENU_CORE": [
{
"name": _("Menu"),
"url": "#",
"icon": "restaurant_menu",
"root": True,
"validators": [
"menu_generator.validators.is_authenticated",
],
"submenu": [
{
"name": _("Current menu"),
"url": "menu_show_current",
"icon": "picture_as_pdf",
"validators": ["menu_generator.validators.is_authenticated"],
},
{
"name": _("Upload menu"),
"url": "menu_index",
"icon": "file_upload",
"validators": ["menu_generator.validators.is_authenticated"],
},
],
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment