fix styling of deactivated/locked customers in overview and 0-value in edit-form

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-21 11:43:25 +02:00
parent 3ee04a6e75
commit f389226aae
4 changed files with 32 additions and 12 deletions

View File

@@ -27,6 +27,7 @@ use Froxlor\UI\Callbacks\Customer;
use Froxlor\UI\Callbacks\Impersonate;
use Froxlor\UI\Callbacks\ProgressBar;
use Froxlor\UI\Callbacks\Text;
use Froxlor\UI\Callbacks\Style;
use Froxlor\UI\Listing;
return [
@@ -155,7 +156,7 @@ return [
'unlock' => [
'icon' => 'fa fa-unlock',
'title' => lng('panel.unlock'),
'class' => 'text-warning',
'class' => 'btn-outline-secondary',
'href' => [
'section' => 'customers',
'page' => 'customers',
@@ -186,5 +187,8 @@ return [
],
],
],
'format_callback' => [
[Style::class, 'resultCustomerLockedOrDeactivated']
]
]
];