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

<xf:breadcrumb source="$thread.getBreadcrumbs()" />

<xf:form action="{{ link('posts/delete', $post) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:if is="$post.isFirstPost()">
				<xf:inforow>
					<div class="blockMessage blockMessage--important"><strong>{{ phrase('note:') }}</strong> {{ phrase('this_is_first_post_in_thread') }}</div>
				</xf:inforow>
			</xf:if>
			<xf:macro id="helper_action::delete_type" arg-canHardDelete="{$post.canDelete('hard')}" />

			<xf:if is="$post.canSendModeratorActionAlert()">
				<xf:macro id="helper_action::author_alert" />
			</xf:if>
		</div>
		<xf:submitrow icon="delete" sticky="true" />
	</div>
	<xf:redirect />
</xf:form>