empty states

This commit is contained in:
2026-03-13 09:49:11 +01:00
parent cb7256aebc
commit 082fa4c9a5
12 changed files with 174 additions and 46 deletions

View File

@@ -265,7 +265,19 @@ $openOverrideCard = $detailsOpenAll;
<?php if ($showCustomFieldsTab): ?>
<div data-tab-panel="custom_fields">
<?php if ($customFieldTenantUuid === ''): ?>
<p class="muted"><?php e(t('Save tenant first to manage custom fields')); ?></p>
<?php
$emptyState = [
'message' => t('Save tenant first to manage custom fields'),
'size' => 'compact',
];
if (!$isReadOnly) {
$emptyState['action'] = [
'label' => t('Create'),
'form' => $formId,
];
}
require templatePath('partials/app-empty-state.phtml');
?>
<?php else: ?>
<blockquote data-variant="info">
<?php e(t('Define custom fields here. They appear per user in the "Custom fields" tab and can be maintained there.')); ?>