From 5014bcbc63f537ad3e8a0954a278e72712e117f3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 31 Jul 2020 00:29:02 +0200 Subject: [PATCH] add ref to audit lists --- Theme/Backend/Lang/en.lang.php | 1 + Theme/Backend/audit-list.tpl.php | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 31d3070..92c457b 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -24,6 +24,7 @@ return ['Auditor' => [ 'Name' => 'Name', 'New' => 'New', 'Old' => 'Old', + 'Ref' => 'Ref', 'Subtype' => 'Subtype', 'Type' => 'Type', ]]; diff --git a/Theme/Backend/audit-list.tpl.php b/Theme/Backend/audit-list.tpl.php index 43be720..ff0be56 100755 --- a/Theme/Backend/audit-list.tpl.php +++ b/Theme/Backend/audit-list.tpl.php @@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
getHtml('Audits') ?>
- + @@ -39,6 +39,7 @@ echo $this->getData('nav')->render(); ?> + @@ -51,10 +52,11 @@ echo $this->getData('nav')->render(); ?> $audit) : ++$count; - $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/audit/single?{?}&id=' . $audit->getId()); ?> + $url = UriFactory::build('{/prefix}admin/audit/single?{?}&id=' . $audit->getId()); ?>
getHtml('New') ?> getHtml('Content') ?> getHtml('By') ?> + getHtml('Ref') ?> getHtml('Date') ?>
getId(); ?> printHtml($audit->getModule()); ?> @@ -64,6 +66,7 @@ echo $this->getData('nav')->render(); ?> printHtml($audit->getNew()); ?> printHtml($audit->getContent()); ?> printHtml($audit->getCreatedBy()->getName()); ?> + printHtml($audit->getRef()); ?> getCreatedAt()->format('Y-m-d H:i'); ?>