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

<xf:if is="$userGroups is not empty">
	<div class="block">
		<div class="block-outer">
			<xf:macro id="filter_macros::quick_filter" arg-key="user-groups" arg-class="block-outer-opposite" />
		</div>
		<div class="block-container">
			<div class="block-body">
				<xf:datalist>
					<xf:foreach loop="$userGroups" value="$userGroup">
						<xf:datarow>
							<xf:main hash="{$userGroup.user_group_id}"
								href="{{ link('permissions/user-groups', $userGroup) }}" label="{$userGroup.title}"
								hint="{$userGroup.user_title}" />
							<xf:action href="{{ link('user-groups/edit', $userGroup) }}">{{ phrase('group_info') }}
							</xf:action>
						</xf:datarow>
					</xf:foreach>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($userGroups) }}</span>
			</div>
		</div>
	</div>
</xf:if>