Files
breadcrumb-the-shire/pages/admin/tenants/create(default).phtml
fs b749b5d192 feat: centralize breadcrumbs in topbar and remove history navigation
Move breadcrumb rendering from individual page templates into the core
topbar. Each page now sets $breadcrumbs in its action .php file; the
topbar renders it automatically via the shared partial.

- Remove global back/forward buttons and app-nav-history.js component
- Remove Alt+Arrow keyboard shortcuts for history navigation
- Render breadcrumb in topbar-left section (replaces button area)
- Clean up breadcrumb CSS: context-neutral base (flex, no margin)
- Recalculate sticky titlebar offset in details container
- Migrate all 41 pages (core + helpdesk, audit, addressbook, api-docs)
- Add missing breadcrumbs to addressbook detail view
- Update architecture contract tests (nav-history references removed)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 17:17:06 +02:00

53 lines
1.3 KiB
PHTML

<?php
/**
* @var array<int, string> $errors
* @var array $form
* @var bool $canManageCustomFields
* @var bool $canManageSso
*/
?>
<div class="app-details-container">
<section>
<?php
$titlebar = [
'title' => t('Create tenant'),
'backHref' => 'admin/tenants',
'backTitle' => t('Cancel'),
'actions' => [
[
'form' => 'tenant-form',
'name' => 'action',
'value' => 'create',
'class' => 'secondary outline',
'label' => t('Create'),
],
[
'form' => 'tenant-form',
'name' => 'action',
'value' => 'create_close',
'class' => 'primary',
'label' => t('Create & close'),
],
],
];
require templatePath('partials/app-details-titlebar.phtml');
?>
<?php
$validationSummaryErrors = $validationSummaryErrors ?? ($errors ?? []);
require templatePath('partials/app-details-validation-summary.phtml');
?>
<?php
$values = $form ?? [];
$detailsOpenAll = true;
$showCustomFieldsTab = (bool) ($canManageCustomFields ?? false);
$showSsoTab = (bool) ($canManageSso ?? false);
$customFieldTenantUuid = '';
$customFieldDefinitions = [];
$ignoreTabStorage = true;
require __DIR__ . '/_form.phtml';
?>
</section>
</div>