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

<xf:form action="{{ link('user-group-promotions/demote', null, {'promotion_id': $promotion.promotion_id, 'user_id': $promotionLog.user_id}) }}"
	ajax="true" class="block">

	<div class="block-container">
		<xf:if is="$isDemotion">
			<div class="block-body">
				<xf:inforow rowtype="confirm">
					{{ phrase('please_confirm_want_remove_user_from_promotion:') }}
					<strong>{$user.username} - {$promotion.title}</strong>
					{{ phrase('this_user_not_receive_promotion_even_if_meets_requirements') }}
				</xf:inforow>
			</div>
			<xf:submitrow submit="{{ phrase('demote_user') }}" rowtype="simple" />
		<xf:else />
			<div class="block-body">
				<xf:inforow rowtype="confirm">
					{{ phrase('please_confirm_want_enable_promotion_for_user:') }}
					<strong>{$user.username} - {$promotion.title}</strong>
					{{ phrase('this_user_will_receive_promotion_when_meets_requirements') }}
				</xf:inforow>
			</div>
			<xf:submitrow submit="{{ phrase('enable_promotion_for_user') }}" rowtype="simple" />
		</xf:if>
	</div>

	<xf:redirect />
</xf:form>