diff --git a/Controller.php b/Controller.php index 230a2fc..fe1a014 100644 --- a/Controller.php +++ b/Controller.php @@ -156,6 +156,9 @@ final class Controller extends ModuleAbstract implements WebInterface $view->addData('unit', UnitMapper::get((int) $request->getData('id'))); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } @@ -187,6 +190,9 @@ final class Controller extends ModuleAbstract implements WebInterface $selectorView = new \Modules\Organization\Theme\Backend\Components\UnitTagSelector\UnitTagSelectorView($this->app, $request, $response); $view->addData('unit-selector', $selectorView); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } @@ -253,6 +259,9 @@ final class Controller extends ModuleAbstract implements WebInterface $view->addData('department', DepartmentMapper::get((int) $request->getData('id'))); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } @@ -287,6 +296,9 @@ final class Controller extends ModuleAbstract implements WebInterface $unitSelectorView = new \Modules\Organization\Theme\Backend\Components\UnitTagSelector\UnitTagSelectorView($this->app, $request, $response); $view->addData('unit-selector', $unitSelectorView); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } @@ -353,6 +365,9 @@ final class Controller extends ModuleAbstract implements WebInterface $view->addData('position', PositionMapper::get((int) $request->getData('id'))); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } @@ -387,6 +402,9 @@ final class Controller extends ModuleAbstract implements WebInterface $departmentSelectorView = new \Modules\Organization\Theme\Backend\Components\DepartmentTagSelector\DepartmentTagSelectorView($this->app, $request, $response); $view->addData('department-selector', $departmentSelectorView); + $editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response); + $view->addData('editor', $editor); + return $view; } diff --git a/Theme/Backend/department-create.tpl.php b/Theme/Backend/department-create.tpl.php index d9e5797..7c18338 100644 --- a/Theme/Backend/department-create.tpl.php +++ b/Theme/Backend/department-create.tpl.php @@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Department') ?>

- +
@@ -30,7 +30,8 @@ echo $this->getData('nav')->render(); ?>
getData('unit-selector')->render('iUnit', false); ?>
-
+
getData('editor')->render('department-editor'); ?> +
getData('editor')->getData('text')->render('department-editor', 'description', 'fDepartmentCreate'); ?>
diff --git a/Theme/Backend/department-profile.tpl.php b/Theme/Backend/department-profile.tpl.php index ed1c10f..aa5c825 100644 --- a/Theme/Backend/department-profile.tpl.php +++ b/Theme/Backend/department-profile.tpl.php @@ -24,7 +24,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Department') ?>

- +
@@ -36,8 +36,8 @@ echo $this->getData('nav')->render(); ?>
-
+
getData('editor')->render('department-editor'); ?> +
getData('editor')->getData('text')->render('department-editor', 'description', 'iDepartment'); ?>
diff --git a/Theme/Backend/position-create.tpl.php b/Theme/Backend/position-create.tpl.php index 89090b1..146c633 100644 --- a/Theme/Backend/position-create.tpl.php +++ b/Theme/Backend/position-create.tpl.php @@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Position') ?>

- +
@@ -34,8 +34,8 @@ echo $this->getData('nav')->render(); ?>
-
+
getData('editor')->render('position-editor'); ?> +
getData('editor')->getData('text')->render('position-editor', 'description', 'fPositionCreate'); ?>
diff --git a/Theme/Backend/position-profile.tpl.php b/Theme/Backend/position-profile.tpl.php index a96ca03..4147214 100644 --- a/Theme/Backend/position-profile.tpl.php +++ b/Theme/Backend/position-profile.tpl.php @@ -24,7 +24,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Position') ?>

- +
@@ -36,8 +36,8 @@ echo $this->getData('nav')->render(); ?>
-
+
getData('editor')->render('position-editor'); ?> +
getData('editor')->getData('text')->render('position-editor', 'description', 'iPosition'); ?>
diff --git a/Theme/Backend/unit-create.tpl.php b/Theme/Backend/unit-create.tpl.php index e827db4..7d09e52 100644 --- a/Theme/Backend/unit-create.tpl.php +++ b/Theme/Backend/unit-create.tpl.php @@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Unit') ?>

- +
@@ -32,8 +32,8 @@ echo $this->getData('nav')->render(); ?>
-
+
getData('editor')->render('unit-editor'); ?> +
getData('editor')->getData('text')->render('unit-editor', 'description', 'fUnitCreate'); ?>
diff --git a/Theme/Backend/unit-profile.tpl.php b/Theme/Backend/unit-profile.tpl.php index e7d2c12..cd02775 100644 --- a/Theme/Backend/unit-profile.tpl.php +++ b/Theme/Backend/unit-profile.tpl.php @@ -24,7 +24,7 @@ echo $this->getData('nav')->render(); ?>

getHtml('Unit') ?>

- +
@@ -34,9 +34,8 @@ echo $this->getData('nav')->render(); ?>
-
- +
getData('editor')->render('unit-editor'); ?> +
getData('editor')->getData('text')->render('unit-editor', 'description', 'iUnit'); ?>