Add nesting for CORE-POS top menu

too many items in this menu already!
This commit is contained in:
Lance Edgar 2021-02-01 11:55:41 -06:00
parent bd1be88be4
commit 4df8439fd6

View file

@ -35,104 +35,131 @@ def make_corepos_menu(request):
'type': 'menu', 'type': 'menu',
'items': [ 'items': [
{ {
'title': "Customers (Legacy)", 'title': "People",
'url': url('corepos.customers'), 'type': 'menu',
'perm': 'corepos.customers.list', 'items': [
{
'title': "Customers (Legacy)",
'url': url('corepos.customers'),
'perm': 'corepos.customers.list',
},
{
'title': "Members (Legacy)",
'url': url('corepos.members'),
'perm': 'corepos.members.list',
},
{
'title': "Member Types",
'url': url('corepos.member_types'),
'perm': 'corepos.member_types.list',
},
{
'title': "Employees",
'url': url('corepos.employees'),
'perm': 'corepos.employees.list',
},
],
}, },
{
'title': "Members (Legacy)",
'url': url('corepos.members'),
'perm': 'corepos.members.list',
},
{
'title': "Member Types",
'url': url('corepos.member_types'),
'perm': 'corepos.member_types.list',
},
{
'title': "Employees",
'url': url('corepos.employees'),
'perm': 'corepos.employees.list',
},
{'type': 'sep'},
{ {
'title': "Products", 'title': "Products",
'url': url('corepos.products'), 'type': 'menu',
'perm': 'corepos.products.list', 'items': [
}, {
{ 'title': "Products",
'title': "Product Flags", 'url': url('corepos.products'),
'url': url('corepos.product_flags'), 'perm': 'corepos.products.list',
'perm': 'corepos.product_flags.list', },
}, {
{ 'title': "Product Flags",
'title': "Scale Items", 'url': url('corepos.product_flags'),
'url': url('corepos.scale_items'), 'perm': 'corepos.product_flags.list',
'perm': 'corepos.scale_items.list', },
}, {
{ 'title': "Scale Items",
'title': "Super Departments", 'url': url('corepos.scale_items'),
'url': url('corepos.super_departments'), 'perm': 'corepos.scale_items.list',
'perm': 'corepos.super_departments.list', },
}, {'type': 'sep'},
{ {
'title': "Departments", 'title': "Super Departments",
'url': url('corepos.departments'), 'url': url('corepos.super_departments'),
'perm': 'corepos.departments.list', 'perm': 'corepos.super_departments.list',
}, },
{ {
'title': "Subdepartments", 'title': "Departments",
'url': url('corepos.subdepartments'), 'url': url('corepos.departments'),
'perm': 'corepos.subdepartments.list', 'perm': 'corepos.departments.list',
},
{
'title': "Subdepartments",
'url': url('corepos.subdepartments'),
'perm': 'corepos.subdepartments.list',
},
{'type': 'sep'},
{
'title': "Batches",
'url': url('corepos.batches'),
'perm': 'corepos.batches.list',
},
{
'title': "Batch Types",
'url': url('corepos.batch_types'),
'perm': 'corepos.batch_types.list',
},
],
}, },
{ {
'title': "Vendors", 'title': "Vendors",
'url': url('corepos.vendors'), 'type': 'menu',
'perm': 'corepos.vendors.list', 'items': [
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Origins",
'url': url('corepos.origins'),
'perm': 'corepos.origins.list',
},
],
}, },
{ {
'title': "Origins", 'title': "Transactions",
'url': url('corepos.origins'), 'type': 'menu',
'perm': 'corepos.origins.list', 'items': [
}, {
{'type': 'sep'}, 'title': "Tax Rates",
{ 'url': url('corepos.taxrates'),
'title': "Tax Rates", 'perm': 'corepos.taxrates.list',
'url': url('corepos.taxrates'), },
'perm': 'corepos.taxrates.list', {
'title': "House Coupons",
'url': url('corepos.house_coupons'),
'perm': 'corepos.house_coupons.list',
},
{
'title': "Transaction Details",
'url': url('corepos.transaction_details'),
'perm': 'corepos.transaction_details.list',
},
],
}, },
{ {
'title': "House Coupons", 'title': "Misc.",
'url': url('corepos.house_coupons'), 'type': 'menu',
'perm': 'corepos.house_coupons.list', 'items': [
}, {
{'type': 'sep'}, 'title': "Stores",
{ 'url': url('corepos.stores'),
'title': "Batches", 'perm': 'corepos.stores.list',
'url': url('corepos.batches'), },
'perm': 'corepos.batches.list', {
}, 'title': "Parameters",
{ 'url': url('corepos.parameters'),
'title': "Batch Types", 'perm': 'corepos.parameters.list',
'url': url('corepos.batch_types'), },
'perm': 'corepos.batch_types.list', ],
},
{'type': 'sep'},
{
'title': "Parameters",
'url': url('corepos.parameters'),
'perm': 'corepos.parameters.list',
},
{
'title': "Stores",
'url': url('corepos.stores'),
'perm': 'corepos.stores.list',
},
{'type': 'sep'},
{
'title': "Transaction Details",
'url': url('corepos.transaction_details'),
'perm': 'corepos.transaction_details.list',
}, },
], ],
} }