oms-QA/Admin/Settings/Theme/Backend/settings.tpl.php
Dennis Eichhorn 02898279ac
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix version and bugs
2024-05-21 00:09:16 +02:00

73 lines
2.8 KiB
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Auditor
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
/**
* @var \phpOMS\Views\View $this
* @var \Modules\QA\Models\QAApp[] $apps
*/
$apps = $this->data['apps'] ?? [];
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Apps'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="slider">
<table id="appList" class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<label for="appList-sort-1">
<input type="radio" name="appList-sort" id="appList-sort-1">
<i class="sort-asc g-icon">expand_less</i>
</label>
<label for="appList-sort-2">
<input type="radio" name="appList-sort" id="appList-sort-2">
<i class="sort-desc g-icon">expand_more</i>
</label>
<label>
<i class="filter g-icon">filter_alt</i>
</label>
<td><?= $this->getHtml('Name'); ?>
<label for="appList-sort-3">
<input type="radio" name="appList-sort" id="appList-sort-3">
<i class="sort-asc g-icon">expand_less</i>
</label>
<label for="appList-sort-4">
<input type="radio" name="appList-sort" id="appList-sort-4">
<i class="sort-desc g-icon">expand_more</i>
</label>
<label>
<i class="filter g-icon">filter_alt</i>
</label>
<tbody>
<?php $count = 0;
foreach ($apps as $key => $app) : ++$count;
$url = UriFactory::build('{/base}/admin/module/settings?id=QA&app=' . $app->id); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $app->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($app->name); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="8" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</section>
</div>
</div>