<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('pages/delete', $node) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('please_confirm_that_you_want_to_delete_following:') }}
				<strong><a href="{{ link('pages/edit', $node) }}">{$node.title}</a></strong>
			</xf:inforow>

			<xf:macro id="helper_node_delete_children::delete_row" arg-node="{$node}" arg-nodeTree="{$nodeTree}" />
		</div>
		<xf:submitrow rowtype="{{ !$node.hasChildren() ? 'simple' : '' }}" icon="delete" />
	</div>
	<xf:redirect />
</xf:form>