Add link to generate new report, when viewing one
This commit is contained in:
parent
89ffbd6efc
commit
aaabde5c5a
11
tailbone/templates/reports/generated/view.mako
Normal file
11
tailbone/templates/reports/generated/view.mako
Normal file
|
@ -0,0 +1,11 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/view.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
${parent.context_menu_items()}
|
||||
% if request.has_perm('{}.generate'.format(permission_prefix)):
|
||||
<li>${h.link_to("Generate new Report", url('generate_report'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Reference in a new issue