1; ?> 'admin/users', 'label' => t('All'), 'active' => $activeTenant === '', ], ]; foreach ($tenants ?? [] as $tenant) { $tenantUuid = (string) ($tenant['uuid'] ?? ''); if ($tenantUuid === '') { continue; } $listTabsItems[] = [ 'href' => 'admin/users?tenant=' . rawurlencode($tenantUuid), 'label' => (string) ($tenant['description'] ?? ''), 'active' => $activeTenant === $tenantUuid, ]; } require templatePath('partials/app-list-tabs.phtml'); ?>
$searchConfig, 'filterSchema' => $clientFilterSchema, 'filterChipMeta' => $filterChipMeta, 'currentUserUuid' => (string) $currentUserUuid, 'canUpdateUsers' => (bool) $canUpdateUsers, 'canUpdateSelf' => (bool) $canUpdateSelf, 'csrf' => $gridCsrf, 'gridLang' => $gridLang, 'labels' => [ 'avatar' => t('Avatar'), 'firstName' => t('First name'), 'lastName' => t('Last name'), 'email' => t('Email'), 'state' => t('State'), 'tenants' => t('Tenants'), 'departments' => t('Departments'), 'roles' => t('Roles'), 'phone' => t('Phone'), 'mobile' => t('Mobile'), 'shortDial' => t('Short dial'), 'created' => t('Created'), 'modified' => t('Modified'), 'lastLogin' => t('Last login'), 'selectAll' => t('Select all'), 'active' => t('Active'), 'inactive' => t('Inactive'), 'never' => t('Never'), 'bulkActivateConfirm' => t('Activate users?'), 'bulkDeactivateConfirm' => t('Deactivate users?'), 'bulkDeleteConfirm' => t('Delete users?'), 'bulkSendAccessConfirm' => t('Send access emails to selected users?'), 'bulkAccessPdfConfirm' => t('Generate access PDFs for selected users?'), 'primaryTenant' => t('Primary tenant'), 'bulkMessages' => [ 'activate' => [ 'success' => t('%d users activated'), 'error' => t('Failed to activate users'), ], 'deactivate' => [ 'success' => t('%d users deactivated'), 'error' => t('Failed to deactivate users'), ], 'delete' => [ 'success' => t('%d users deleted'), 'error' => t('Failed to delete users'), ], 'send-access' => [ 'success' => t('Access emails sent to %d users'), 'partial' => t('Access emails sent to %d users, %f failed'), 'error' => t('Failed to send access emails'), ], ], ], ]; ?>