Add support for new Purchase/Batch views, 'create row' master pattern
More refactoring here but hopefully not that important..
This commit is contained in:
parent
8fe0e96273
commit
a6e43d1658
11 changed files with 555 additions and 26 deletions
11
tailbone/templates/purchases/batches/index.mako
Normal file
11
tailbone/templates/purchases/batches/index.mako
Normal 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()}
|
11
tailbone/templates/purchases/index.mako
Normal file
11
tailbone/templates/purchases/index.mako
Normal 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()}
|
Loading…
Add table
Add a link
Reference in a new issue