fix nav link

This commit is contained in:
Dennis Eichhorn 2021-02-08 22:49:31 +01:00
parent d404e26b90
commit 43ea8c0c38
2 changed files with 40 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Exchange",
"uri": "{/prefix}admin/exchange/dashboard?{?}",
"uri": "{/prefix}admin/exchange/log/list?{?}",
"target": "self",
"icon": null,
"order": 50,

View File

@ -0,0 +1,39 @@
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Modules\Exchange
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use \phpOMS\Uri\UriFactory;
/** @var \Modules\Exchange\Models\ExchangeLog $log */
$log = $this->getData('log');
echo $this->getData('nav')->render();
?>
<div class="row">
<div class="col-xs-12">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Exchange'); ?></div>
<div class="portlet-body">
<table class="list w-100">
<tbody>
<tr><td><?= $this->getHtml('ID', '0', '0'); ?><td class="wf-100"><?= $log->getId(); ?>
<tr><td><?= $this->getHtml('Type'); ?><td class="wf-100"><?= $log->getType(); ?>
<tr><td><?= $this->getHtml('Subtype'); ?><td class="wf-100"><?= $log->subtype; ?>
<tr><td><?= $this->getHtml('Created'); ?><td><?= $log->createdAt->format('Y-m-d'); ?>
<tr><td><?= $this->getHtml('Creator'); ?><td><a href="<?= UriFactory::build('{/prefix}profile/single?for=' . $log->createdBy->getId()); ?>"><?= $log->createdBy->name1; ?></a>
<tr><td colspan="2"><?= $log->message; ?>
</table>
</div>
</section>
</div>
</div>