Add basic mobile support for executing batches
no progress, or options, yet..
This commit is contained in:
parent
6ca69802f5
commit
a8a4e362a0
3 changed files with 58 additions and 12 deletions
|
@ -11,18 +11,26 @@ ${parent.body()}
|
|||
${grid.render_complete()|n}
|
||||
% endif
|
||||
|
||||
% if not batch.executed and request.has_perm('{}.edit'.format(permission_prefix)):
|
||||
% if batch.complete:
|
||||
${h.form(request.route_url('mobile.{}.mark_pending'.format(route_prefix), uuid=batch.uuid))}
|
||||
% if not batch.executed:
|
||||
% if request.has_perm('{}.edit'.format(permission_prefix)):
|
||||
% if batch.complete:
|
||||
${h.form(url('mobile.{}.mark_pending'.format(route_prefix), uuid=batch.uuid))}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('mark-pending', value='true')}
|
||||
${h.submit('submit', "Mark Batch as Pending")}
|
||||
${h.end_form()}
|
||||
% else:
|
||||
${h.form(url('mobile.{}.mark_complete'.format(route_prefix), uuid=batch.uuid))}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('mark-complete', value='true')}
|
||||
${h.submit('submit', "Mark Batch as Complete")}
|
||||
${h.end_form()}
|
||||
% endif
|
||||
% endif
|
||||
% if batch.complete and master.mobile_executable and request.has_perm('{}.execute'.format(permission_prefix)):
|
||||
${h.form(url('mobile.{}.execute'.format(route_prefix), uuid=batch.uuid))}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('mark-pending', value='true')}
|
||||
${h.submit('submit', "Mark Batch as Pending")}
|
||||
${h.end_form()}
|
||||
% else:
|
||||
${h.form(request.route_url('mobile.{}.mark_complete'.format(route_prefix), uuid=batch.uuid))}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('mark-complete', value='true')}
|
||||
${h.submit('submit', "Mark Batch as Complete")}
|
||||
${h.submit('submit', "Execute Batch")}
|
||||
${h.end_form()}
|
||||
% endif
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue