<xf:title>{$user.username}</xf:title>

<xf:form action="{{ link('permissions/users/save', $user) }}" ajax="true" class="{{ $tabbed ? '' : 'block' }}">

	<xf:if is="$tabbed">
		<div class="block-body">
			<div class="block-row">{{ phrase('user_permissions_warning', {
				'user': $user.username,
				'link': link('permissions/user-groups')
			}) }}</div>
			<xf:hiddenval name="from-user-edit" value="1" />
		</div>
	</xf:if>

	<xf:macro template="permission_macros" name="edit_outer"
		arg-type="global"
		arg-class="{{ $tabbed ? 'block-row' : 'block-outer' }}"/>

	<div class="{{ $tabbed ? '' : 'block-container' }}">
		<xf:macro template="permission_macros" name="edit_groups"
			arg-interfaceGroups="{$permissionData.interfaceGroups}"
			arg-permissionsGrouped="{$permissionData.permissionsGrouped}"
			arg-values="{$userEntries}" />
		<xf:submitrow sticky="true" icon="save" />
	</div>
</xf:form>