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