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

<xf:pageaction>
	<xf:button href="{{ link('admin-permissions/add') }}" icon="add">{{ phrase('add_admin_permission') }}</xf:button>
</xf:pageaction>

<xf:form action="" class="block">
	<div class="block-outer">
		<xf:macro id="filter_macros::quick_filter" arg-key="admin-permissions" arg-class="block-outer-opposite" />
	</div>
	<div class="block-container">
		<div class="block-body">
			<xf:datalist>
				<xf:foreach loop="$permissions" value="$permission">
					<xf:datarow href="{{ link('admin-permissions/edit', $permission) }}"
						label="{$permission.title}"
						hint="{$permission.admin_permission_id}"
						delete="{{ link('admin-permissions/delete', $permission) }}" />
				</xf:foreach>
			</xf:datalist>
		</div>
		<div class="block-footer">
			<span class="block-footer-counter">{{ display_totals($permissions) }}</span>
		</div>
	</div>
</xf:form>