empty states
This commit is contained in:
@@ -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.')); ?>
|
||||
|
||||
Reference in New Issue
Block a user