Add basic support for cloning batches

For now only label batches support this by default
This commit is contained in:
Lance Edgar 2017-01-24 21:36:58 -06:00
parent b14feae0c1
commit c2a189cb40
3 changed files with 21 additions and 0 deletions

View file

@ -33,6 +33,9 @@
% if master.rows_downloadable and request.has_perm('{}.csv'.format(permission_prefix)):
<li>${h.link_to("Download row data as CSV", url('{}.csv'.format(route_prefix), uuid=batch.uuid))}</li>
% endif
% if master.cloneable and request.has_perm('{}.clone'.format(permission_prefix)):
<li>${h.link_to("Clone as new batch", url('{}.clone'.format(route_prefix), uuid=batch.uuid))}</li>
% endif
</%def>
<%def name="buttons()">