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

@ -33,6 +33,10 @@ def make_corepos_menu(request):
corepos_menu = { corepos_menu = {
'title': "CORE-POS", 'title': "CORE-POS",
'type': 'menu', 'type': 'menu',
'items': [
{
'title': "People",
'type': 'menu',
'items': [ 'items': [
{ {
'title': "Customers (Legacy)", 'title': "Customers (Legacy)",
@ -54,7 +58,12 @@ def make_corepos_menu(request):
'url': url('corepos.employees'), 'url': url('corepos.employees'),
'perm': 'corepos.employees.list', 'perm': 'corepos.employees.list',
}, },
{'type': 'sep'}, ],
},
{
'title': "Products",
'type': 'menu',
'items': [
{ {
'title': "Products", 'title': "Products",
'url': url('corepos.products'), 'url': url('corepos.products'),
@ -70,6 +79,7 @@ def make_corepos_menu(request):
'url': url('corepos.scale_items'), 'url': url('corepos.scale_items'),
'perm': 'corepos.scale_items.list', 'perm': 'corepos.scale_items.list',
}, },
{'type': 'sep'},
{ {
'title': "Super Departments", 'title': "Super Departments",
'url': url('corepos.super_departments'), 'url': url('corepos.super_departments'),
@ -85,27 +95,6 @@ def make_corepos_menu(request):
'url': url('corepos.subdepartments'), 'url': url('corepos.subdepartments'),
'perm': 'corepos.subdepartments.list', 'perm': 'corepos.subdepartments.list',
}, },
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Origins",
'url': url('corepos.origins'),
'perm': 'corepos.origins.list',
},
{'type': 'sep'},
{
'title': "Tax Rates",
'url': url('corepos.taxrates'),
'perm': 'corepos.taxrates.list',
},
{
'title': "House Coupons",
'url': url('corepos.house_coupons'),
'perm': 'corepos.house_coupons.list',
},
{'type': 'sep'}, {'type': 'sep'},
{ {
'title': "Batches", 'title': "Batches",
@ -117,22 +106,60 @@ def make_corepos_menu(request):
'url': url('corepos.batch_types'), 'url': url('corepos.batch_types'),
'perm': 'corepos.batch_types.list', 'perm': 'corepos.batch_types.list',
}, },
{'type': 'sep'}, ],
{
'title': "Parameters",
'url': url('corepos.parameters'),
'perm': 'corepos.parameters.list',
}, },
{
'title': "Vendors",
'type': 'menu',
'items': [
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Origins",
'url': url('corepos.origins'),
'perm': 'corepos.origins.list',
},
],
},
{
'title': "Transactions",
'type': 'menu',
'items': [
{
'title': "Tax Rates",
'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': "Misc.",
'type': 'menu',
'items': [
{ {
'title': "Stores", 'title': "Stores",
'url': url('corepos.stores'), 'url': url('corepos.stores'),
'perm': 'corepos.stores.list', 'perm': 'corepos.stores.list',
}, },
{'type': 'sep'},
{ {
'title': "Transaction Details", 'title': "Parameters",
'url': url('corepos.transaction_details'), 'url': url('corepos.parameters'),
'perm': 'corepos.transaction_details.list', 'perm': 'corepos.parameters.list',
},
],
}, },
], ],
} }