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>
51 lines
2.1 KiB
PHTML
51 lines
2.1 KiB
PHTML
<?php
|
|
$toolbarFilterSchema = is_array($toolbarFilterSchema ?? null) ? $toolbarFilterSchema : [];
|
|
$searchToolbarFilterSchema = is_array($searchToolbarFilterSchema ?? null) ? $searchToolbarFilterSchema : [];
|
|
$drawerToolbarFilterSchema = is_array($drawerToolbarFilterSchema ?? null) ? $drawerToolbarFilterSchema : [];
|
|
$toolbarFilterState = is_array($toolbarFilterState ?? null) ? $toolbarFilterState : [];
|
|
$toolbarOptionSets = is_array($toolbarOptionSets ?? null) ? $toolbarOptionSets : [];
|
|
$clientFilterSchema = is_array($clientFilterSchema ?? null) ? $clientFilterSchema : [];
|
|
$searchConfig = is_array($searchConfig ?? null) ? $searchConfig : null;
|
|
$filterChipMeta = is_array($filterChipMeta ?? null) ? $filterChipMeta : [];
|
|
$isConfigured = $isConfigured ?? false;
|
|
?>
|
|
<?php require templatePath('partials/app-flash.phtml'); ?>
|
|
|
|
<?php if (!$isConfigured): ?>
|
|
<div class="notice" data-variant="warning" role="alert">
|
|
<p><?php e(t('BC connection is not configured. Please configure the connection in the settings.')); ?></p>
|
|
<a href="<?php e(lurl('helpdesk/settings')); ?>" role="button" class="secondary outline small">
|
|
<?php e(t('Open settings')); ?>
|
|
</a>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
$listTitle = t('Customers');
|
|
require templatePath('partials/app-list-titlebar.phtml');
|
|
?>
|
|
<?php
|
|
$filterUiNamespace = 'helpdesk-search';
|
|
require templatePath('partials/app-list-filters.phtml');
|
|
?>
|
|
<div class="app-list-table">
|
|
<div id="helpdesk-search-grid"></div>
|
|
</div>
|
|
|
|
<script src="<?php e(assetVersion('vendor/gridjs/gridjs.umd.js')); ?>"></script>
|
|
<script type="application/json" id="page-config-helpdesk-search"><?php gridJsonForJs([
|
|
'dataUrl' => lurl('helpdesk/search-data'),
|
|
'gridLang' => gridLang(),
|
|
'gridSearch' => $searchConfig,
|
|
'filterSchema' => $clientFilterSchema,
|
|
'filterChipMeta' => $filterChipMeta,
|
|
'labels' => [
|
|
'debtorNo' => t('Debtor No.'),
|
|
'name' => t('Name'),
|
|
'city' => t('City'),
|
|
'phone' => t('Phone'),
|
|
'email' => t('E-Mail'),
|
|
],
|
|
]); ?></script>
|
|
<script type="module" src="<?php e(assetVersion('modules/helpdesk/js/pages/helpdesk-search-index.js')); ?>"></script>
|