Files
breadcrumb-the-shire/pages/admin/users/create(default).phtml
fs 25370a1a55 add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00

78 lines
2.2 KiB
PHTML

<?php
/**
* @var array<int, string> $errors
* @var array $form
*/
?>
<div class="app-details-container">
<section>
<?php
$breadcrumbs = [
['label' => t('Home'), 'path' => 'admin'],
['label' => t('Users'), 'path' => 'admin/users'],
['label' => t('Create user')],
];
require templatePath('partials/app-breadcrumb.phtml');
$titlebar = [
'title' => t('Create user'),
'backHref' => 'admin/users',
'backTitle' => t('Cancel'),
'actions' => [
[
'form' => 'user-form',
'name' => 'action',
'value' => 'create',
'class' => 'secondary outline',
'label' => t('Create'),
],
[
'form' => 'user-form',
'name' => 'action',
'value' => 'create_close',
'class' => 'primary',
'label' => t('Create & close'),
],
],
];
require templatePath('partials/app-details-titlebar.phtml');
?>
<?php if (!empty($errors)): ?>
<div class="notice" data-variant="error">
<ul>
<?php foreach ($errors as $error): ?>
<li><?php e($error); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php
$values = $form ?? [];
$passwordRequired = true;
$detailsOpenAll = true;
$passwordLabel = t('Password');
$passwordLegend = t('Password');
$passwordConfirmLabel = t('Password (again)');
$showTenants = can('users.update_assignments');
$showRoles = $showTenants;
$showDepartments = $showTenants;
$tenants = $tenants ?? [];
$roles = $roles ?? [];
$selectedTenantIds = $selectedTenantIds ?? [];
$selectedRoleIds = $selectedRoleIds ?? [];
$selectedDepartmentIds = $selectedDepartmentIds ?? [];
$departmentOptionsByTenant = $departmentOptionsByTenant ?? [];
$showCustomFieldsTab = true;
$canEditCustomFieldValues = !empty($canEditCustomFieldValues);
$customFieldDefinitionsByTenant = $customFieldDefinitionsByTenant ?? [];
$customFieldValueMap = $customFieldValueMap ?? [];
$customFieldPostedValues = $customFieldPostedValues ?? [];
require __DIR__ . '/_form.phtml';
?>
</section>
</div>