impl. todos

This commit is contained in:
Dennis Eichhorn 2021-02-09 22:56:15 +01:00
parent d38f81d6c6
commit c9d17fabd1
2 changed files with 17 additions and 10 deletions

View File

@ -44,6 +44,7 @@ echo $this->getData('nav')->render(); ?>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td><?= $this->getHtml('Module'); ?>
<td><?= $this->getHtml('Action'); ?>
<td><?= $this->getHtml('Type'); ?>
<td><?= $this->getHtml('Trigger'); ?>
<td><?= $this->getHtml('Content'); ?>
@ -56,6 +57,11 @@ echo $this->getData('nav')->render(); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td><?= $audit->getId(); ?>
<td><?= $this->printHtml($audit->getModule()); ?>
<td><?php if ($audit->getOld() === null) : echo $this->getHtml('CREATE'); ?>
<?php elseif ($audit->getOld() !== null && $audit->getNew() !== null) : echo $this->getHtml('UPDATE'); ?>
<?php elseif ($audit->getNew() === null) : echo $this->getHtml('DELETE'); ?>
<?php else : echo $this->getHtml('UNKNOWN'); ?>
<?php endif; ?>
<td><?= $audit->getType(); ?>
<td><?= $audit->getTrigger(); ?>
<td><?= $this->printHtml($audit->getContent()); ?>

View File

@ -42,22 +42,23 @@ echo $this->getData('nav')->render();
<div class="portlet-body">
<table class="list">
<tr>
<th>Type
<td>
<?php if ($audit->getOld() === null) : echo 'CREATE'; ?>
<?php elseif ($audit->getOld() !== null && $audit->getNew() !== null) : echo 'UPDATE'; ?>
<?php elseif ($audit->getNew() === null) : echo 'DELETE'; ?>
<?php else : echo 'UNKNOWN'; ?>
<th><?= $this->getHtml('Action'); ?>
<td><?php if ($audit->getOld() === null) : echo $this->getHtml('CREATE'); ?>
<?php elseif ($audit->getOld() !== null && $audit->getNew() !== null) : echo $this->getHtml('UPDATE'); ?>
<?php elseif ($audit->getNew() === null) : echo $this->getHtml('DELETE'); ?>
<?php else : echo $this->getHtml('UNKNOWN'); ?>
<?php endif; ?>
<tr>
<th>Created By
<th><?= $this->getHtml('Type'); ?>
<td><?= $audit->getType(); ?>
<tr>
<th><?= $this->getHtml('By'); ?>
<td><a href="<?= UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $audit->createdBy->getId()); ?>"><?= $audit->createdBy->name1; ?></a>
<tr>
<th>Created At
<th><?= $this->getHtml('Date'); ?>
<td><?= $this->getDateTime($audit->createdAt, 'very_long'); ?>
<tr>
<th>Module
<th><?= $this->getHtml('Module'); ?>
<td><a href="<?= UriFactory::build('{/prefix}admin/module/settings?{?}&id=' . $audit->getModule()); ?>"><?= $audit->getModule(); ?></a>
<tr>
<th>IP