major update

This commit is contained in:
2026-03-04 15:56:58 +01:00
parent 16759a2732
commit 8f4dd5840d
478 changed files with 24313 additions and 8201 deletions

View File

@@ -41,15 +41,10 @@
];
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
$validationSummaryErrors = $validationSummaryErrors ?? ($errors ?? []);
require templatePath('partials/app-details-validation-summary.phtml');
?>
<?php
$values = $form ?? [];
$passwordRequired = true;
@@ -57,7 +52,8 @@
$passwordLabel = t('Password');
$passwordLegend = t('Password');
$passwordConfirmLabel = t('Password (again)');
$showTenants = can('users.update_assignments');
$pageAuth = is_array($viewAuth['page'] ?? null) ? $viewAuth['page'] : [];
$showTenants = (bool) ($pageAuth['can_manage_assignments'] ?? false);
$showRoles = $showTenants;
$showDepartments = $showTenants;
$tenants = $tenants ?? [];
@@ -67,7 +63,7 @@
$selectedDepartmentIds = $selectedDepartmentIds ?? [];
$departmentOptionsByTenant = $departmentOptionsByTenant ?? [];
$showCustomFieldsTab = true;
$canEditCustomFieldValues = !empty($canEditCustomFieldValues);
$canEditCustomFieldValues = (bool) ($pageAuth['can_edit_custom_field_values'] ?? false);
$customFieldDefinitionsByTenant = $customFieldDefinitionsByTenant ?? [];
$customFieldValueMap = $customFieldValueMap ?? [];
$customFieldPostedValues = $customFieldPostedValues ?? [];