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

<xf:form action="{{ link('user-group-promotions/history') }}" class="block">
	<div class="block-container">
		<h2 class="block-header">{{ phrase('search_promotion_history') }}</h2>
		<div class="block-body">
			<xf:textboxrow hint="{{ phrase('you_may_leave_this_blank') }}" name="username" ac="single"
				label="{{ phrase('user_name') }}" />

			<xf:selectrow name="promotion_id"
				label="{{ phrase('promotion') }}">

				<xf:option value="0">{{ phrase('(any)') }}</xf:option>
				<xf:options source="$userGroupPromotions" />
			</xf:selectrow>
		</div>
		<xf:submitrow icon="search" />
	</div>
</xf:form>

<xf:form action="{{ link('user-group-promotions/manual') }}" class="block">
	<div class="block-container">
		<h2 class="block-header">{{ phrase('manually_promote_user') }}</h2>
		<div class="block-body">
			<xf:textboxrow name="username" ac="single"
				label="{{ phrase('user_name') }}" />

			<xf:selectrow name="promotion_id"
				label="{{ phrase('promotion') }}">

				<xf:option value="0">{{ phrase('(any)') }}</xf:option>
				<xf:options source="$userGroupPromotions" />
			</xf:selectrow>

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

				<xf:option value="promote" selected="true">{{ phrase('promote_this_user') }}</xf:option>
				<xf:option value="demote">{{ phrase('prevent_this_user_from_receiving_this_promotion_automatically') }}</xf:option>
			</xf:radiorow>
		</div>
		<xf:submitrow icon="save" />
	</div>
</xf:form>