Add generic support for downloading list results as CSV
This commit is contained in:
parent
f6d9f7a913
commit
9ff6df83e5
2 changed files with 53 additions and 0 deletions
|
@ -69,6 +69,9 @@
|
|||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if master.results_downloadable_csv and request.has_perm('{}.results_csv'.format(permission_prefix)):
|
||||
<li>${h.link_to("Download results as CSV", url('{}.results_csv'.format(route_prefix)))}</li>
|
||||
% endif
|
||||
% if master.creatable and request.has_perm('{}.create'.format(permission_prefix)):
|
||||
<li>${h.link_to("Create a new {}".format(model_title), url('{}.create'.format(route_prefix)))}</li>
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue