mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-12 18:58:40 +00:00
Added group status
This commit is contained in:
parent
b6669b5eb4
commit
2997750b68
|
|
@ -134,4 +134,7 @@ return ['Admin' => [
|
||||||
'Status2' => 'Inactive',
|
'Status2' => 'Inactive',
|
||||||
'Status3' => 'Timehout',
|
'Status3' => 'Timehout',
|
||||||
'Status4' => 'Banned',
|
'Status4' => 'Banned',
|
||||||
|
'GroupStatus1' => 'Active',
|
||||||
|
'GroupStatus2' => 'Inactive',
|
||||||
|
'GroupStatus4' => 'Hidden',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', 0, 0); ?>
|
<td><?= $this->getHtml('ID', 0, 0); ?>
|
||||||
|
<td><?= $this->getHtml('Status') ?>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
||||||
<td><?= $this->getHtml('Parents') ?>
|
<td><?= $this->getHtml('Parents') ?>
|
||||||
<td><?= $this->getHtml('Children') ?>
|
<td><?= $this->getHtml('Children') ?>
|
||||||
|
|
@ -39,9 +40,14 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId());
|
||||||
|
$color = 'darkred';
|
||||||
|
if($value->getStatus() === \phpOMS\Account\GroupStatus::ACTIVE) { $color = 'green'; }
|
||||||
|
elseif($value->getStatus() === \phpOMS\Account\GroupStatus::INACTIVE) { $color = 'darkblue'; }
|
||||||
|
elseif($value->getStatus() === \phpOMS\Account\GroupStatus::HIDDEN) { $color = 'purple'; } ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||||
|
<td><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->getHtml('Status'. $value->getStatus()); ?></span></a>
|
||||||
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
<td><a href="<?= $url; ?>"><?= htmlspecialchars($value->getName(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||||
<td>
|
<td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user