mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 03:18:41 +00:00
42 lines
1.6 KiB
PHP
Executable File
42 lines
1.6 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\RiskManagement
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
$units = $this->getData('units');
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box wf-100">
|
|
<table class="default">
|
|
<caption><?= $this->getHtml('Units') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
|
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
|
<tfoot>
|
|
<tr><td colspan="3">
|
|
<tbody>
|
|
<?php $c = 0; foreach ($units as $key => $value) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/unit/single?{?}&id=' . $value->getId()); ?>
|
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
|
<?php endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|