diff --git a/rattail_demo/web/menus.py b/rattail_demo/web/menus.py index b9f2827..f981d4b 100644 --- a/rattail_demo/web/menus.py +++ b/rattail_demo/web/menus.py @@ -3,10 +3,14 @@ Web Menus """ +from tailbone_corepos.menus import make_corepos_menu + def simple_menus(request): url = request.route_url + corepos_menu = make_corepos_menu(request) + menus = [ { 'title': "People", @@ -103,62 +107,7 @@ def simple_menus(request): }, ], }, - { - 'title': "CORE-POS", - 'type': 'menu', - 'items': [ - { - 'title': "Super Departments", - 'url': url('corepos.super_departments'), - 'perm': 'corepos.super_departments.list', - }, - { - 'title': "Departments", - 'url': url('corepos.departments'), - 'perm': 'corepos.departments.list', - }, - { - 'title': "Subdepartments", - 'url': url('corepos.subdepartments'), - 'perm': 'corepos.subdepartments.list', - }, - { - 'title': "Vendors", - 'url': url('corepos.vendors'), - 'perm': 'corepos.vendors.list', - }, - { - 'title': "Products", - 'url': url('corepos.products'), - 'perm': 'corepos.products.list', - }, - { - 'title': "Customers", - 'url': url('corepos.customers'), - 'perm': 'corepos.customers.list', - }, - { - 'title': "Member Types", - 'url': url('corepos.member_types'), - 'perm': 'corepos.member_types.list', - }, - { - 'title': "Members", - 'url': url('corepos.members'), - 'perm': 'corepos.members.list', - }, - { - 'title': "Employees", - 'url': url('corepos.employees'), - 'perm': 'corepos.employees.list', - }, - { - 'title': "Transaction Details", - 'url': url('corepos.transaction_details'), - 'perm': 'corepos.transaction_details.list', - }, - ], - }, + corepos_menu, { 'title': "Shopfoo", 'type': 'menu',