From c1cbc56c9ce5020bdd9019b32eac126ba897d944 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Jan 2017 10:29:35 +0100 Subject: [PATCH] Organization tpl flexbox integration --- Theme/Backend/department-create.tpl.php | 40 +++++++++-------- Theme/Backend/department-list.tpl.php | 56 +++++++++++++----------- Theme/Backend/department-profile.tpl.php | 44 ++++++++++--------- Theme/Backend/position-create.tpl.php | 44 ++++++++++--------- Theme/Backend/position-list.tpl.php | 48 ++++++++++---------- Theme/Backend/unit-create.tpl.php | 44 ++++++++++--------- Theme/Backend/unit-list.tpl.php | 42 ++++++++++-------- Theme/Backend/unit-profile.tpl.php | 44 ++++++++++--------- 8 files changed, 197 insertions(+), 165 deletions(-) diff --git a/Theme/Backend/department-create.tpl.php b/Theme/Backend/department-create.tpl.php index 726c0fe..e40bfe0 100644 --- a/Theme/Backend/department-create.tpl.php +++ b/Theme/Backend/department-create.tpl.php @@ -19,22 +19,26 @@ echo $this->getData('nav')->render(); ?> -
-

getText('Department'); ?>

-
-
- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+

getText('Department'); ?>

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
-
+ \ No newline at end of file diff --git a/Theme/Backend/department-list.tpl.php b/Theme/Backend/department-list.tpl.php index e2bbea5..ebf6171 100644 --- a/Theme/Backend/department-list.tpl.php +++ b/Theme/Backend/department-list.tpl.php @@ -26,29 +26,33 @@ $footerView->setResults(1); echo $this->getData('nav')->render(); ?> -
- - - - - - - getData('list:elements') as $key => $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/department/profile?id=' . $value->getId()); ?> - - -
getText('Departments'); ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> - getText('Unit'); ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - getUnit(); ?> - - -
getText('Empty', 0, 0); ?> - -
-
+
+
+
+ + + + + + + getData('list:elements') as $key => $value) : $c++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/department/profile?id=' . $value->getId()); ?> + + +
getText('Departments'); ?>
getText('ID', 0, 0); ?> + getText('Name'); ?> + getText('Parent'); ?> + getText('Unit'); ?> +
render(); ?> +
getId(); ?> + getName(); ?> + getParent(); ?> + getUnit(); ?> + + +
getText('Empty', 0, 0); ?> + +
+
+
+
\ No newline at end of file diff --git a/Theme/Backend/department-profile.tpl.php b/Theme/Backend/department-profile.tpl.php index 099eec9..bd1545b 100644 --- a/Theme/Backend/department-profile.tpl.php +++ b/Theme/Backend/department-profile.tpl.php @@ -21,24 +21,28 @@ $department = $this->getData('department'); echo $this->getData('nav')->render(); ?> -
-

getText('Department'); ?>

-
-
- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+

getText('Department'); ?>

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
-
+ \ No newline at end of file diff --git a/Theme/Backend/position-create.tpl.php b/Theme/Backend/position-create.tpl.php index 2bd8533..4f6eb84 100644 --- a/Theme/Backend/position-create.tpl.php +++ b/Theme/Backend/position-create.tpl.php @@ -19,24 +19,28 @@ echo $this->getData('nav')->render(); ?> -
-

getText('Position'); ?>

-
-
- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+

getText('Position'); ?>

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
-
+ diff --git a/Theme/Backend/position-list.tpl.php b/Theme/Backend/position-list.tpl.php index 17465cd..47983ac 100644 --- a/Theme/Backend/position-list.tpl.php +++ b/Theme/Backend/position-list.tpl.php @@ -28,26 +28,30 @@ $listElements = $this->getData('list:elements') ?? []; echo $this->getData('nav')->render(); ?> -
- - - - - - - $value) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/position/profile?id=' . $value->getId()); ?> - -
getText('Positions'); ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - - -
getText('Empty', 0, 0); ?> - -
+
+
+
+ + + + + + + $value) : $count++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/position/profile?id=' . $value->getId()); ?> + +
getText('Positions'); ?>
getText('ID', 0, 0); ?> + getText('Name'); ?> + getText('Parent'); ?> +
render(); ?> +
getId(); ?> + getName(); ?> + getParent(); ?> + + +
getText('Empty', 0, 0); ?> + +
+
+
diff --git a/Theme/Backend/unit-create.tpl.php b/Theme/Backend/unit-create.tpl.php index 579a105..ccc7a9e 100644 --- a/Theme/Backend/unit-create.tpl.php +++ b/Theme/Backend/unit-create.tpl.php @@ -19,24 +19,28 @@ echo $this->getData('nav')->render(); ?> -
-

getText('Unit'); ?>

-
-
- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+

getText('Unit'); ?>

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/Theme/Backend/unit-list.tpl.php b/Theme/Backend/unit-list.tpl.php index 4733b9b..9e97e58 100644 --- a/Theme/Backend/unit-list.tpl.php +++ b/Theme/Backend/unit-list.tpl.php @@ -26,23 +26,27 @@ $footerView->setResults(1); echo $this->getData('nav')->render(); ?> -
- - - - - - - getData('list:elements') as $key => $value) : - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/unit/profile?id=' . $value->getId()); ?> - -
getText('Units'); ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - -
+
+
+
+ + + + + + + getData('list:elements') as $key => $value) : + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/organization/unit/profile?id=' . $value->getId()); ?> + +
getText('Units'); ?>
getText('ID', 0, 0); ?> + getText('Name'); ?> + getText('Parent'); ?> +
render(); ?> +
getId(); ?> + getName(); ?> + getParent(); ?> + +
+
+
diff --git a/Theme/Backend/unit-profile.tpl.php b/Theme/Backend/unit-profile.tpl.php index f2e4f78..97278fa 100644 --- a/Theme/Backend/unit-profile.tpl.php +++ b/Theme/Backend/unit-profile.tpl.php @@ -21,24 +21,28 @@ $unit = $this->getData('unit'); echo $this->getData('nav')->render(); ?> -
-

getText('Unit'); ?>

-
-
- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+

getText('Unit'); ?>

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file