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

<xf:if is="$users is not empty">
	<div class="block">
		<div class="block-outer">
			<xf:macro id="filter_macros::quick_filter" arg-key="user-permissions" arg-class="block-outer-opposite" />
		</div>
		<div class="block-container">
			<h3 class="block-header">{{ phrase('users_with_permissions_set') }}</h3>
			<div class="block-body">
				<xf:datalist>
					<xf:foreach loop="$users" value="$user">
						<xf:datarow
							label="{$user.username}"
							href="{{ link('permissions/users', $user) }}" />
					</xf:foreach>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($users) }}</span>
			</div>
		</div>
	</div>
</xf:if>

<xf:form action="{{ link('permissions/users') }}" method="post" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="username" ac="single"
				label="{{ phrase('set_permissions_for_user') }}" />
		</div>
		<xf:submitrow submit="{{ phrase('proceed...') }}" />
	</div>
</xf:form>