Rearrange menu a bit, add rattail-corepos dependency
This commit is contained in:
parent
8ed906020b
commit
caaf2842dc
|
@ -22,7 +22,7 @@
|
|||
</li>
|
||||
% endif
|
||||
|
||||
% if request.has_any_perm('products.list', 'vendors.list', 'brands.list', 'families.list', 'reportcodes.list'):
|
||||
% if request.has_any_perm('products.list', 'vendors.list', 'departments.list', 'subdepartments.list', 'brands.list', 'families.list', 'reportcodes.list'):
|
||||
<li>
|
||||
<a>Products</a>
|
||||
<ul>
|
||||
|
@ -32,6 +32,12 @@
|
|||
% if request.has_perm('vendors.list'):
|
||||
<li>${h.link_to("Vendors", url('vendors'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('departments.list'):
|
||||
<li>${h.link_to("Departments", url('departments'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('subdepartments.list'):
|
||||
<li>${h.link_to("Subdepartments", url('subdepartments'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('brands.list'):
|
||||
<li>${h.link_to("Brands", url('brands'))}</li>
|
||||
% endif
|
||||
|
@ -62,23 +68,6 @@
|
|||
</li>
|
||||
% endif
|
||||
|
||||
% if request.has_any_perm('stores.list', 'departments.list', 'subdepartments.list'):
|
||||
<li>
|
||||
<a>Company</a>
|
||||
<ul>
|
||||
% if request.has_perm('stores.list'):
|
||||
<li>${h.link_to("Stores", url('stores'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('departments.list'):
|
||||
<li>${h.link_to("Departments", url('departments'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('subdepartments.list'):
|
||||
<li>${h.link_to("Subdepartments", url('subdepartments'))}</li>
|
||||
% endif
|
||||
</ul>
|
||||
</li>
|
||||
% endif
|
||||
|
||||
% if request.has_any_perm('batch.handheld.list', 'batch.inventory.list'):
|
||||
<li>
|
||||
<a>Batches</a>
|
||||
|
@ -110,10 +99,13 @@
|
|||
</li>
|
||||
% endif
|
||||
|
||||
% if request.has_any_perm('users.list', 'userevents.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
|
||||
% if request.has_any_perm('stores.list', 'users.list', 'userevents.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
|
||||
<li>
|
||||
<a>Admin</a>
|
||||
<ul>
|
||||
% if request.has_perm('stores.list'):
|
||||
<li>${h.link_to("Stores", url('stores'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('users.list'):
|
||||
<li>${h.link_to("Users", url('users'))}</li>
|
||||
% endif
|
||||
|
|
Loading…
Reference in a new issue