Allow batch execution to require options on a per-batch basis
plus some other changes i think..
This commit is contained in:
parent
98ca378302
commit
3477637c74
5 changed files with 26 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
|||
${h.javascript_link(request.static_url('tailbone:static/js/tailbone.batch.js'))}
|
||||
<script type="text/javascript">
|
||||
|
||||
var has_execution_options = ${'true' if master.has_execution_options else 'false'};
|
||||
var has_execution_options = ${'true' if master.has_execution_options(batch) else 'false'};
|
||||
|
||||
$(function() {
|
||||
% if master.has_worksheet:
|
||||
|
@ -89,7 +89,7 @@ ${rows_grid|n}
|
|||
|
||||
${h.form(url('{}.execute'.format(route_prefix), uuid=batch.uuid), name='batch-execution')}
|
||||
${h.csrf_token(request)}
|
||||
% if master.has_execution_options:
|
||||
% if master.has_execution_options(batch):
|
||||
${rendered_execution_options|n}
|
||||
% endif
|
||||
${h.end_form()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue