diff --git a/Theme/Backend/accounts-list.tpl.php b/Theme/Backend/accounts-list.tpl.php index 63d4e4d..24511b7 100644 --- a/Theme/Backend/accounts-list.tpl.php +++ b/Theme/Backend/accounts-list.tpl.php @@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
- +
diff --git a/Theme/Backend/accounts-single.tpl.php b/Theme/Backend/accounts-single.tpl.php index 122c6a9..e127b59 100644 --- a/Theme/Backend/accounts-single.tpl.php +++ b/Theme/Backend/accounts-single.tpl.php @@ -94,7 +94,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Groups') ?>
+
@@ -132,7 +132,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Groups') ?>
+
diff --git a/Theme/Backend/groups-list.tpl.php b/Theme/Backend/groups-list.tpl.php index 30cd195..973d7ae 100644 --- a/Theme/Backend/groups-list.tpl.php +++ b/Theme/Backend/groups-list.tpl.php @@ -18,7 +18,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Permissions') ?>
+
diff --git a/Theme/Backend/groups-single.tpl.php b/Theme/Backend/groups-single.tpl.php index 8aad7a2..bc9ce21 100644 --- a/Theme/Backend/groups-single.tpl.php +++ b/Theme/Backend/groups-single.tpl.php @@ -20,7 +20,7 @@ $accounts = $group->getAccounts(); echo $this->getData('nav')->render(); ?> -
+
-
getHtml('Groups') ?>
+
@@ -93,7 +93,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Accounts') ?>
+
@@ -187,7 +187,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Permissions') ?>
+
diff --git a/Theme/Backend/modules-list.tpl.php b/Theme/Backend/modules-list.tpl.php index 8049df4..6b6d5fe 100644 --- a/Theme/Backend/modules-list.tpl.php +++ b/Theme/Backend/modules-list.tpl.php @@ -10,6 +10,7 @@ * @version 1.0.0 * @link http://website.orange-management.de */ +use phpOMS\Module\ModuleStatus; /** * @var \phpOMS\Views\View $this @@ -23,7 +24,7 @@ $installed = $this->app->moduleManager->getInstalledModules();
-
getHtml('AuditLog') ?>
+
@@ -36,18 +37,34 @@ $installed = $this->app->moduleManager->getInstalledModules(); $module) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/module/settings?{?}&id=' . $module['name']['internal']); ?> + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/module/settings?{?}&id=' . $module['name']['internal']); + if (isset($active[$module['name']['internal']])) { $status = ModuleStatus::ACTIVE; } + elseif (isset($installed[$module['name']['internal']])) { $status = ModuleStatus::INACTIVE; } + else { $status = ModuleStatus::AVAILABLE; } + ?>
getHtml('Modules') ?>
printHtml($module['name']['id']); ?> printHtml($module['name']['external']); ?> printHtml($module['version']); ?> - getHtml('Active')); - elseif (isset($installed[$module['name']['internal']])) - echo \mb_strtolower($this->getHtml('Inactive')); - else - echo \mb_strtolower($this->getHtml('Available')); ?> - + + + + getHtml('Active')); + elseif ($status === ModuleStatus::INACTIVE) + echo \mb_strtolower($this->getHtml('Inactive')); + else + echo \mb_strtolower($this->getHtml('Available')); ?> + + +
getHtml('Empty', 0, 0); ?> diff --git a/Theme/Backend/settings-general.tpl.php b/Theme/Backend/settings-general.tpl.php index a12de25..fa306d9 100644 --- a/Theme/Backend/settings-general.tpl.php +++ b/Theme/Backend/settings-general.tpl.php @@ -31,7 +31,7 @@ $volumes = \phpOMS\Utils\Converter\VolumeType::getConstants(); $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants(); ?> -
+