Add support for new Purchase/Batch views, 'create row' master pattern

More refactoring here but hopefully not that important..
This commit is contained in:
Lance Edgar 2016-11-06 12:58:29 -06:00
parent 8fe0e96273
commit a6e43d1658
11 changed files with 555 additions and 26 deletions

View file

@ -0,0 +1,11 @@
## -*- coding: utf-8 -*-
<%inherit file="/master/index.mako" />
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('purchases.batch'):
<li>${h.link_to("Go to Purchases", url('purchases'))}</li>
% endif
</%def>
${parent.body()}

View file

@ -0,0 +1,11 @@
## -*- coding: utf-8 -*-
<%inherit file="/master/index.mako" />
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('purchases.batch.list'):
<li>${h.link_to("Go to Purchase Batches", url('purchases.batch'))}</li>
% endif
</%def>
${parent.body()}