Use new tab, colors and css

This commit is contained in:
Dennis Eichhorn 2019-01-13 21:42:08 +01:00
parent 3775e2efa9
commit 7771dd6c15
6 changed files with 35 additions and 18 deletions

View File

@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box wf-100"> <div class="box wf-100">
<table id="accountList" class="table red"> <table id="accountList" class="table darkred">
<caption><?= $this->getHtml('Groups') ?></caption> <caption><?= $this->getHtml('Groups') ?></caption>
<thead> <thead>
<tr> <tr>

View File

@ -94,7 +94,7 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<table id="groupTable" class="box table red"> <table id="groupTable" class="box table darkred">
<caption><?= $this->getHtml('Groups') ?></caption> <caption><?= $this->getHtml('Groups') ?></caption>
<thead> <thead>
<tr> <tr>
@ -132,7 +132,7 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<table class="box table red"> <table class="box table darkred">
<caption><?= $this->getHtml('Permissions') ?></caption> <caption><?= $this->getHtml('Permissions') ?></caption>
<thead> <thead>
<tr> <tr>

View File

@ -18,7 +18,7 @@ echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<table id="groupList" class="box table red"> <table id="groupList" class="box table darkred">
<caption><?= $this->getHtml('Groups') ?></caption> <caption><?= $this->getHtml('Groups') ?></caption>
<thead> <thead>
<tr> <tr>

View File

@ -20,7 +20,7 @@ $accounts = $group->getAccounts();
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="tabular-2"> <div class="tab tab-2">
<div class="box wf-100"> <div class="box wf-100">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li>
@ -58,7 +58,7 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<table class="box table red wf-100"> <table class="box table darkred wf-100">
<caption><?= $this->getHtml('Accounts') ?></caption> <caption><?= $this->getHtml('Accounts') ?></caption>
<thead> <thead>
<tr> <tr>
@ -93,7 +93,7 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<table id="groupPermissions" class="box table red wf-100"> <table id="groupPermissions" class="box table darkred wf-100">
<caption><?= $this->getHtml('Permissions') ?></caption> <caption><?= $this->getHtml('Permissions') ?></caption>
<thead> <thead>
<tr> <tr>
@ -187,7 +187,7 @@ echo $this->getData('nav')->render(); ?>
<div class="tab"> <div class="tab">
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<table class="box table red wf-100"> <table class="box table darkred wf-100">
<caption><?= $this->getHtml('AuditLog') ?></caption> <caption><?= $this->getHtml('AuditLog') ?></caption>
<thead> <thead>
<tr> <tr>

View File

@ -10,6 +10,7 @@
* @version 1.0.0 * @version 1.0.0
* @link http://website.orange-management.de * @link http://website.orange-management.de
*/ */
use phpOMS\Module\ModuleStatus;
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
@ -23,7 +24,7 @@ $installed = $this->app->moduleManager->getInstalledModules();
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box wf-100"> <div class="box wf-100">
<table id="moduleList" class="table red"> <table id="moduleList" class="table darkred">
<caption><?= $this->getHtml('Modules') ?></caption> <caption><?= $this->getHtml('Modules') ?></caption>
<thead> <thead>
<tr> <tr>
@ -36,18 +37,34 @@ $installed = $this->app->moduleManager->getInstalledModules();
<td colspan="4"> <td colspan="4">
<tbody> <tbody>
<?php $count = 0; foreach ($modules as $key => $module) : $count++; <?php $count = 0; foreach ($modules as $key => $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; }
?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['id']); ?></a> <td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['id']); ?></a>
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['external']); ?></a> <td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['external']); ?></a>
<td data-label="<?= $this->getHtml('Version') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['version']); ?></a> <td data-label="<?= $this->getHtml('Version') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['version']); ?></a>
<td data-label="<?= $this->getHtml('Status') ?>"><a href="<?= $url; ?>"><?php if (isset($active[$module['name']['internal']])) <td data-label="<?= $this->getHtml('Status') ?>">
echo \mb_strtolower($this->getHtml('Active')); <span class="tag <?php
elseif (isset($installed[$module['name']['internal']])) if ($status === ModuleStatus::ACTIVE)
echo \mb_strtolower($this->getHtml('Inactive')); echo 'green';
else elseif ($status === ModuleStatus::INACTIVE)
echo \mb_strtolower($this->getHtml('Available')); ?></a> echo 'red';
<?php endforeach; ?> else
echo 'blue';
?>">
<a href="<?= $url; ?>">
<?php if ($status === ModuleStatus::ACTIVE)
echo \mb_strtolower($this->getHtml('Active'));
elseif ($status === ModuleStatus::INACTIVE)
echo \mb_strtolower($this->getHtml('Inactive'));
else
echo \mb_strtolower($this->getHtml('Available')); ?>
</a>
<?php endforeach; ?>
</span>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', 0, 0); ?> <tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?> <?php endif; ?>

View File

@ -31,7 +31,7 @@ $volumes = \phpOMS\Utils\Converter\VolumeType::getConstants();
$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants(); $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
?> ?>
<div class="tabular-2"> <div class="tab tab-2">
<div class="box wf-100"> <div class="box wf-100">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li>