mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-01 01:18:41 +00:00
Fixing template (lang+default)
This commit is contained in:
parent
840041359a
commit
ace53a32a1
|
|
@ -21,6 +21,8 @@ return ['Organization' => [
|
|||
'Inactive' => 'Inactive',
|
||||
'Name' => 'Name',
|
||||
'Parent' => 'Parent',
|
||||
'Position' => 'Position',
|
||||
'Positions' => 'Positions',
|
||||
'Status' => 'Status',
|
||||
'Unit' => 'Unit',
|
||||
'Units' => 'Units',
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ $footerView->setPages(1 / 25);
|
|||
$footerView->setPage(1);
|
||||
$footerView->setResults(1);
|
||||
|
||||
$listElements = $this->getData('list:elements') ?? [];
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<div class="box w-100">
|
||||
|
|
@ -37,12 +39,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tfoot>
|
||||
<tr><td colspan="3"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php foreach ($this->getData('list:elements') as $key => $value) :
|
||||
<?php $count = 0; foreach($listElements as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/unit/profile?id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user