Add views for deposit links, taxes; update product view.
This commit is contained in:
parent
d30d6f84e6
commit
d50aef4e49
8 changed files with 270 additions and 0 deletions
13
tailbone/templates/depositlinks/crud.mako
Normal file
13
tailbone/templates/depositlinks/crud.mako
Normal file
|
@ -0,0 +1,13 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Deposit Links", url('depositlinks'))}</li>
|
||||
% if form.readonly:
|
||||
<li>${h.link_to("Edit this Deposit Link", url('depositlink.edit', uuid=form.fieldset.model.uuid))}</li>
|
||||
% elif form.updating:
|
||||
<li>${h.link_to("View this Deposit Link", url('depositlink.view', uuid=form.fieldset.model.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
12
tailbone/templates/depositlinks/index.mako
Normal file
12
tailbone/templates/depositlinks/index.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Deposit Links</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm('depositlinks.create'):
|
||||
<li>${h.link_to("Create a new Deposit Link", url('depositlink.new'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
13
tailbone/templates/taxes/crud.mako
Normal file
13
tailbone/templates/taxes/crud.mako
Normal file
|
@ -0,0 +1,13 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Taxes", url('taxes'))}</li>
|
||||
% if form.readonly:
|
||||
<li>${h.link_to("Edit this Tax", url('tax.edit', uuid=form.fieldset.model.uuid))}</li>
|
||||
% elif form.updating:
|
||||
<li>${h.link_to("View this Tax", url('tax.view', uuid=form.fieldset.model.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
12
tailbone/templates/taxes/index.mako
Normal file
12
tailbone/templates/taxes/index.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Taxes</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm('taxes.create'):
|
||||
<li>${h.link_to("Create a new Tax", url('tax.new'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue