From ace53a32a145bcebdc707457a144c231a73f573a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 24 Jun 2016 22:08:40 +0200 Subject: [PATCH] Fixing template (lang+default) --- Theme/Backend/Lang/en.lang.php | 2 ++ Theme/Backend/position-list.tpl.php | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 03c4569..253169f 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -21,6 +21,8 @@ return ['Organization' => [ 'Inactive' => 'Inactive', 'Name' => 'Name', 'Parent' => 'Parent', + 'Position' => 'Position', + 'Positions' => 'Positions', 'Status' => 'Status', 'Unit' => 'Unit', 'Units' => 'Units', diff --git a/Theme/Backend/position-list.tpl.php b/Theme/Backend/position-list.tpl.php index 027bb3f..4012554 100644 --- a/Theme/Backend/position-list.tpl.php +++ b/Theme/Backend/position-list.tpl.php @@ -24,6 +24,8 @@ $footerView->setPages(1 / 25); $footerView->setPage(1); $footerView->setResults(1); +$listElements = $this->getData('list:elements') ?? []; + echo $this->getData('nav')->render(); ?>
@@ -37,12 +39,15 @@ echo $this->getData('nav')->render(); ?> render(); ?> - getData('list:elements') as $key => $value) : + $value) : $count++; $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/unit/profile?id=' . $value->getId()); ?> getId(); ?> getName(); ?> getParent(); ?> + + l11n->lang[0]['Empty']; ?> +