Make "download row results" a bit more generic
to handle non-native table/rows, w/ non-uuid key
This commit is contained in:
parent
7924502b65
commit
a038f2a98d
2 changed files with 3 additions and 3 deletions
|
@ -72,8 +72,8 @@
|
|||
% if master.has_rows and master.rows_downloadable_csv and request.has_perm('{}.row_results_csv'.format(permission_prefix)):
|
||||
<li>${h.link_to("Download row results as CSV", url('{}.row_results_csv'.format(route_prefix), uuid=instance.uuid))}</li>
|
||||
% endif
|
||||
% if master.has_rows and master.rows_downloadable_xlsx and request.has_perm('{}.row_results_xlsx'.format(permission_prefix)):
|
||||
<li>${h.link_to("Download row results as XLSX", url('{}.row_results_xlsx'.format(route_prefix), uuid=instance.uuid))}</li>
|
||||
% if master.has_rows and master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
|
||||
<li>${h.link_to("Download row results as XLSX", master.get_action_url('row_results_xlsx', instance))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue