Add support for downloading batch rows as XLSX file

This commit is contained in:
Lance Edgar 2019-02-05 18:18:02 -06:00
parent 10c30cd21a
commit 6cfc72c875
3 changed files with 75 additions and 0 deletions

View file

@ -67,6 +67,9 @@
% 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>
% endif
</%def>
<%def name="object_helpers()"></%def>