<xf:title>{{ phrase('invite_members_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/invite', $conversation) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:tokeninputrow name="recipients" href="{{ link('members/find') }}"
				max-tokens="{{ ($remainingRecipients > -1) ? $remainingRecipients : null }}"
				label="{{ phrase('invite_members') }}">

				<xf:explain>
					<xf:if is="$remainingRecipients > 1">{{ phrase('separate_names_with_comma') }}</xf:if> {{ phrase('invited_members_see_entire_conversation') }}
					<xf:if is="$remainingRecipients > 0">{{ phrase('you_may_invite_up_to_x_members', {'number': $remainingRecipients|number}) }}</xf:if>
				</xf:explain>
			</xf:tokeninputrow>
		</div>
		<xf:submitrow submit="{{ phrase('invite') }}" />
	</div>
</xf:form>