tailbone/tailbone/templates/emailbounces/crud.mako
2015-07-22 20:01:16 -05:00

15 lines
614 B
Mako

## -*- 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>
${parent.body()}