Add views for deposit links, taxes; update product view.

This commit is contained in:
Lance Edgar 2015-02-26 19:06:20 -06:00
parent d30d6f84e6
commit d50aef4e49
8 changed files with 270 additions and 0 deletions

View 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()}

View 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()}

View 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()}

View 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()}