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

<xf:form action="{{ link('attachments/delete', null, $linkFilters) }}" class="block" ajax="true">

	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				<xf:if is="$attachment">
					{{ phrase('please_confirm_that_you_want_to_delete_following:') }}
					<strong><a href="{{ link('attachments/view', $attachment) }}">{$attachment.filename}</a></strong>
				<xf:else />
					{{ phrase('please_confirm_that_you_want_to_delete_x_attachments', {'number': count($attachmentIds)}) }}
				</xf:if>
			</xf:inforow>
		</div>

		<xf:submitrow rowtype="simple" icon="delete" />
	</div>

	<xf:foreach loop="$attachmentIds" value="$attachmentId">
		<xf:hiddenval name="attachment_ids[]">{$attachmentId}</xf:hiddenval>
	</xf:foreach>

</xf:form>