multiple ui improvements

This commit is contained in:
envoyr
2022-03-14 18:18:35 +01:00
parent 31fbe434b4
commit 2c5c0258bf
52 changed files with 414 additions and 323 deletions

View File

@@ -59,7 +59,7 @@ class ProgressBar
private static function pbData(string $field, array $attributes, int $size_factor = 1024, int $report_max = 90, $infotext = null): array
{
$percent = 0;
$style = 'bg-info';
$style = 'bg-primary';
$text = PhpHelper::sizeReadable($attributes[$field . '_used'] * $size_factor, null, 'bi') . ' / ' . UI::getLng('panel.unlimited');
if ((int)$attributes[$field] >= 0) {
if (($attributes[$field] / 100) * $report_max < $attributes[$field . '_used']) {

View File

@@ -28,7 +28,8 @@ class Listing
return [
'title' => $tabellisting['title'],
'icon' => $tabellisting['icon'],
'description' => $tabellisting['description'] ?? null,
'icon' => $tabellisting['icon'] ?? null,
'table' => [
'th' => self::generateTableHeadings($tabellisting),
'tr' => self::generateTableRows($collection['data']['list'], $tabellisting),

View File

@@ -84,7 +84,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'admins',
'page' => 'admins',

View File

@@ -25,6 +25,7 @@ use Froxlor\UI\Listing;
return [
'customer_list' => [
'title' => $lng['admin']['customers'],
'description' => 'Manage your customers',
'icon' => 'fa-solid fa-user',
'columns' => [
'c.name' => [
@@ -91,7 +92,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'customers',
'page' => 'customers',

View File

@@ -101,7 +101,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'domains',
'page' => 'domains',

View File

@@ -44,7 +44,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'templates',
'page' => $page,

View File

@@ -66,7 +66,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'phpsettings',
'page' => 'fpmdaemons',

View File

@@ -98,7 +98,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'ipsandports',
'page' => 'ipsandports',

View File

@@ -50,7 +50,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'templates',
'page' => $page,

View File

@@ -71,7 +71,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'phpsettings',
'page' => 'overview',

View File

@@ -62,7 +62,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'plans',
'page' => 'overview',

View File

@@ -69,7 +69,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'domains',
'page' => 'sslcertificates',

View File

@@ -105,7 +105,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'domains',
'page' => 'domains',

View File

@@ -73,7 +73,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'email',
'page' => 'emails',

View File

@@ -64,7 +64,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'ftp',
'page' => 'ftps',

View File

@@ -76,7 +76,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'extras',
'page' => 'htaccess',

View File

@@ -52,7 +52,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'extras',
'page' => 'htpasswds',

View File

@@ -65,7 +65,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'mysql',
'page' => 'mysqls',

View File

@@ -71,7 +71,7 @@ return [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'class' => 'btn-danger',
'href' => [
'section' => 'index',
'page' => 'apikeys',