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

<xf:breadcrumb href="{{ link('conversations') }}">{{ phrase('conversations') }}</xf:breadcrumb>
<xf:breadcrumb href="{{ link('conversations', $conversation) }}">{$conversation.title}</xf:breadcrumb>

<xf:form action="{{ link('conversations/add-reply', $conversation) }}" class="block" ajax="true"
	draft="{{ link('conversations/draft', $conversation) }}"
	data-xf-init="attachment-manager">

	<div class="block-container">
		<div class="block-body">
			<xf:editorrow name="message"
				value="{$defaultMessage}"
				attachments="{{ $attachmentData ? $attachmentData.attachments : [] }}"
				rowtype="fullWidth noLabel"
				placeholder="{{ phrase('reply_placeholder') }}"
				label="{{ phrase('message') }}"
				data-preview-url="{{ link('conversations/reply-preview', $conversation) }}" />

			<xf:formrow rowtype="fullWidth noLabel">
				<xf:if is="$attachmentData">
					<xf:macro template="helper_attach_upload" name="upload_block"
						arg-attachmentData="{$attachmentData}"
						arg-forceHash="{$conversation.draft_reply.attachment_hash}" />
				</xf:if>

				<xf:if is="$xf.options.multiQuote">
					<xf:macro template="multi_quote_macros" name="button"
						arg-href="{{ link('conversations/multi-quote', $conversation) }}"
						arg-messageSelector=".js-message"
						arg-storageKey="multiQuoteConversation" />
				</xf:if>
			</xf:formrow>

		</div>
		<xf:submitrow submit="{{ phrase('post_reply') }}" icon="reply" sticky="true" />
	</div>
</xf:form>