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

<xf:form action="{{ link('users/alert/send') }}" class="block">
	<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="test" value="1">{{ phrase('send_test') }}</xf:button>
			</xf:formrow>
		</div>
		<xf:submitrow submit="{{ phrase('send') }}" />
	</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="link_url">{$alert.link_url}</xf:hiddenval>
	<xf:hiddenval name="link_title">{$alert.link_title}</xf:hiddenval>
	<xf:hiddenval name="alert_body">{$alert.alert_body}</xf:hiddenval>
</xf:form>