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

<xf:form action="{{ link('inline-mod') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow>
				{{ phrase('leaving_direct_message_will_remove_it_from_your_direct_message_list') }}
			</xf:inforow>

			<xf:radiorow name="recipient_state"
				label="{{ phrase('future_message_handling') }}">

				<xf:option value="deleted" checked="checked"
					label="{{ phrase('accept_future_messages') }}"
					hint="{{ phrase('should_direct_message_receive_responses_restored_to_inbox') }}" />

				<xf:option value="deleted_ignored"
					label="{{ phrase('ignore_future_messages') }}"
					hint="{{ phrase('not_notified_of_responses_direct_message_remain_deleted') }}" />
			</xf:radiorow>
		</div>
		<xf:submitrow icon="save" />
	</div>

	<xf:foreach loop="$conversations" value="$conversation">
		<xf:hiddenval name="ids[]">{$conversation.conversation_id}</xf:hiddenval>
	</xf:foreach>

	<xf:hiddenval name="type">conversation</xf:hiddenval>
	<xf:hiddenval name="action">leave</xf:hiddenval>
	<xf:hiddenval name="confirmed">1</xf:hiddenval>

	<xf:redirect url="{$redirect}" />
</xf:form>