Some aesthetic improvements for vendor catalog batch

hopefully they're improvements...
This commit is contained in:
Lance Edgar 2022-01-07 15:03:56 -06:00
parent f89dc88c0e
commit ab61778d35
5 changed files with 124 additions and 17 deletions

View file

@ -71,16 +71,32 @@
% if master.touchable and request.has_perm('{}.touch'.format(permission_prefix)):
<li>${h.link_to("\"Touch\" this {}".format(model_title), url('{}.touch'.format(route_prefix), uuid=instance.uuid))}</li>
% endif
% 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>
% if not use_buefy and master.has_rows and master.rows_downloadable_csv and master.has_perm('row_results_csv'):
<li>${h.link_to("Download row results as CSV", master.get_action_url('row_results_csv', instance))}</li>
% endif
% if master.has_rows and master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
% if not use_buefy and 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>
<%def name="render_row_grid_tools()">
${rows_grid_tools}
% if use_buefy:
% if master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
<b-button tag="a" href="${master.get_action_url('row_results_xlsx', instance)}"
icon-pack="fas"
icon-left="download">
Download Results XLSX
</b-button>
% endif
% if master.rows_downloadable_csv and master.has_perm('row_results_csv'):
<b-button tag="a" href="${master.get_action_url('row_results_csv', instance)}"
icon-pack="fas"
icon-left="download">
Download Results CSV
</b-button>
% endif
% endif
</%def>
<%def name="render_this_page()">