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

<xf:form action="{{ link('users/message/send') }}" class="block" preview="{{ link('users/message/preview') }}">
	<div class="block-container">
		<div class="block-body">
			<xf:formrow label="{{ phrase('number_of_users_matching_criteria') }}">
				{$total|number}
				<span role="presentation" aria-hidden="true">&middot;</span>
				<a href="{{ link('users/list', null, {'criteria': $criteria}) }}">{{ phrase('view_full_list') }}</a>
			</xf:formrow>
			<xf:formrow label="{{ phrase('test') }}">
				<xf:button type="submit" name="preview" value="1" class="js-previewButton" icon="preview" />
			</xf:formrow>
		</div>
		<xf:submitrow submit="{{ phrase('send_message') }}" />
	</div>

	<xf:hiddenval name="json_criteria">{$criteria|json}</xf:hiddenval>

	<xf:hiddenval name="total">{$total}</xf:hiddenval>

	<xf:hiddenval name="from_user">{$user.username}</xf:hiddenval>

	<xf:hiddenval name="message_title">{$message.message_title}</xf:hiddenval>
	<xf:hiddenval name="message_body">{$message.message_body}</xf:hiddenval>

	<xf:hiddenval name="open_invite">{$message.open_invite}</xf:hiddenval>
	<xf:hiddenval name="conversation_locked">{$message.conversation_locked}</xf:hiddenval>

	<xf:hiddenval name="delete_type">{$message.delete_type}</xf:hiddenval>
</xf:form>