add Vendor CRUD
This commit is contained in:
parent
4bd4c9647e
commit
ef2fb3d66c
3 changed files with 64 additions and 1 deletions
12
rattail/pyramid/templates/vendors/crud.mako
vendored
Normal file
12
rattail/pyramid/templates/vendors/crud.mako
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Vendors", url('vendors'))}</li>
|
||||
% if form.readonly:
|
||||
<li>${h.link_to("Edit this Vendor", url('vendor.update', uuid=form.fieldset.model.uuid))}</li>
|
||||
% elif form.updating:
|
||||
<li>${h.link_to("View this Vendor", url('vendor.read', uuid=form.fieldset.model.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
6
rattail/pyramid/templates/vendors/index.mako
vendored
6
rattail/pyramid/templates/vendors/index.mako
vendored
|
@ -2,4 +2,10 @@
|
|||
|
||||
<%def name="title()">Vendors</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm('vendors.create'):
|
||||
<li>${h.link_to("Create a new Vendor", url('vendor.create'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue