<xf:title>{{ phrase('processing...') }}</xf:title>
<xf:page option="template">PAGE_RUN_JOB</xf:page>

<xf:if is="$canCancel">
	<xf:pageaction>
		<form action="{{ link('tools/run-job', null, {'cancel': $jobId}) }}" method="post" onsubmit="window.stop()" class="u-pullRight">
			<xf:button type="submit">{{ phrase('button.cancel') }}</xf:button>
			{{ redirect_input(null, null, false) }}
			<xf:csrf />
		</form>
	</xf:pageaction>
</xf:if>

<form action="{{ link('tools/run-job') }}" method="post" class="blockMessage" data-xf-init="auto-submit">

	<div><xf:if is="$status">{$status}<xf:else />{{ phrase('processing...') }}</xf:if></div>

	<div class="u-noJsOnly">
		<xf:button type="submit">{{ phrase('proceed...') }}</xf:button>
	</div>
	{{ redirect_input(null, null, false) }}
	<xf:csrf />
	<xf:hiddenval name="only_ids">{$onlyIds|join(',')}</xf:hiddenval>
</form>