Refactor some more model views to use MasterView.
(emailbounce, depositlink, tax)
This commit is contained in:
parent
bc1c7b3554
commit
215a8c13b0
9 changed files with 123 additions and 328 deletions
|
@ -1,13 +0,0 @@
|
|||
## -*- 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()}
|
|
@ -1,12 +0,0 @@
|
|||
## -*- 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()}
|
|
@ -1,15 +1,5 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<% bounce = form.fieldset.model %>
|
||||
<li>${h.link_to("Back to Email Bounces", url('emailbounces'))}</li>
|
||||
% if not bounce.processed and request.has_perm('emailbounces.process'):
|
||||
<li>${h.link_to("Mark this Email Bounce as Processed", url('emailbounce.process', uuid=bounce.uuid))}</li>
|
||||
% elif bounce.processed and request.has_perm('emailbounces.unprocess'):
|
||||
<li>${h.link_to("Mark this Email Bounce as UN-processed", url('emailbounce.unprocess', uuid=bounce.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
<%inherit file="/master/view.mako" />
|
||||
|
||||
<%def name="head_tags()">
|
||||
${parent.head_tags()}
|
||||
|
@ -44,6 +34,15 @@
|
|||
</script>
|
||||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
${parent.context_menu_items()}
|
||||
% if not bounce.processed and request.has_perm('emailbounces.process'):
|
||||
<li>${h.link_to("Mark this Email Bounce as Processed", url('emailbounces.process', uuid=bounce.uuid))}</li>
|
||||
% elif bounce.processed and request.has_perm('emailbounces.unprocess'):
|
||||
<li>${h.link_to("Mark this Email Bounce as UN-processed", url('emailbounces.unprocess', uuid=bounce.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
||||
<pre id="message">
|
|
@ -1,6 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Email Bounces</%def>
|
||||
|
||||
${parent.body()}
|
|
@ -1,13 +0,0 @@
|
|||
## -*- 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()}
|
|
@ -1,12 +0,0 @@
|
|||
## -*- 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