diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 453fca3..9613135 100644 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -1,4 +1,4 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup'); - } - - public function setId(string $id) : void - { - $this->id = $id; - } - - public function getId() : string - { - return $this->id; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0] ?? $this->id; - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup'); + } + + public function setId(string $id) : void + { + $this->id = $id; + } + + public function getId() : string + { + return $this->id; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0] ?? $this->id; + return parent::render(); + } +} diff --git a/Theme/Backend/Components/DepartmentTagSelector/DepartmentTagSelectorView.php b/Theme/Backend/Components/DepartmentTagSelector/DepartmentTagSelectorView.php index d0498ed..d1ef23a 100644 --- a/Theme/Backend/Components/DepartmentTagSelector/DepartmentTagSelectorView.php +++ b/Theme/Backend/Components/DepartmentTagSelector/DepartmentTagSelectorView.php @@ -1,69 +1,69 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector'); - - $view = new DepartmentTagSelectorPopupView($app, $request, $response); - $this->addData('department-selector-popup', $view); - } - - public function getId() : string - { - return $this->id; - } - - public function isRequired() : bool - { - return $this->isRequired; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0]; - $this->isRequired = $data[1] ?? false; - $this->getData('department-selector-popup')->setId($this->id); - - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector'); + + $view = new DepartmentTagSelectorPopupView($app, $request, $response); + $this->addData('department-selector-popup', $view); + } + + public function getId() : string + { + return $this->id; + } + + public function isRequired() : bool + { + return $this->isRequired; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0]; + $this->isRequired = $data[1] ?? false; + $this->getData('department-selector-popup')->setId($this->id); + + return parent::render(); + } +} diff --git a/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorPopupView.php b/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorPopupView.php index e3a317d..b248d8e 100644 --- a/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorPopupView.php +++ b/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorPopupView.php @@ -1,62 +1,62 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector-popup'); - } - - public function setId(string $id) : void - { - $this->id = $id; - } - - public function getId() : string - { - return $this->id; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0] ?? $this->id; - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector-popup'); + } + + public function setId(string $id) : void + { + $this->id = $id; + } + + public function getId() : string + { + return $this->id; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0] ?? $this->id; + return parent::render(); + } +} diff --git a/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorView.php b/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorView.php index abb61c9..e7ffa16 100644 --- a/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorView.php +++ b/Theme/Backend/Components/PositionTagSelector/PositionTagSelectorView.php @@ -1,69 +1,69 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector'); - - $view = new PositionTagSelectorPopupView($app, $request, $response); - $this->addData('position-selector-popup', $view); - } - - public function getId() : string - { - return $this->id; - } - - public function isRequired() : bool - { - return $this->isRequired; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0]; - $this->isRequired = $data[1] ?? false; - $this->getData('position-selector-popup')->setId($this->id); - - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector'); + + $view = new PositionTagSelectorPopupView($app, $request, $response); + $this->addData('position-selector-popup', $view); + } + + public function getId() : string + { + return $this->id; + } + + public function isRequired() : bool + { + return $this->isRequired; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0]; + $this->isRequired = $data[1] ?? false; + $this->getData('position-selector-popup')->setId($this->id); + + return parent::render(); + } +} diff --git a/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorPopupView.php b/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorPopupView.php index 1f46f9b..cdde49c 100644 --- a/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorPopupView.php +++ b/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorPopupView.php @@ -1,62 +1,62 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector-popup'); - } - - public function setId(string $id) : void - { - $this->id = $id; - } - - public function getId() : string - { - return $this->id; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0] ?? $this->id; - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector-popup'); + } + + public function setId(string $id) : void + { + $this->id = $id; + } + + public function getId() : string + { + return $this->id; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0] ?? $this->id; + return parent::render(); + } +} diff --git a/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorView.php b/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorView.php index a1b6839..1ceab84 100644 --- a/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorView.php +++ b/Theme/Backend/Components/UnitTagSelector/UnitTagSelectorView.php @@ -1,69 +1,69 @@ -setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector'); - - $view = new UnitTagSelectorPopupView($app, $request, $response); - $this->addData('unit-selector-popup', $view); - } - - public function getId() : string - { - return $this->id; - } - - public function isRequired() : bool - { - return $this->isRequired; - } - - /** - * {@inheritdoc} - */ - public function render(...$data) : string - { - $this->id = $data[0]; - $this->isRequired = $data[1] ?? false; - $this->getData('unit-selector-popup')->setId($this->id); - - return parent::render(); - } -} +setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector'); + + $view = new UnitTagSelectorPopupView($app, $request, $response); + $this->addData('unit-selector-popup', $view); + } + + public function getId() : string + { + return $this->id; + } + + public function isRequired() : bool + { + return $this->isRequired; + } + + /** + * {@inheritdoc} + */ + public function render(...$data) : string + { + $this->id = $data[0]; + $this->isRequired = $data[1] ?? false; + $this->getData('unit-selector-popup')->setId($this->id); + + return parent::render(); + } +} diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 5a713bb..4a18901 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ -getData('department'); diff --git a/Theme/Backend/position-create.tpl.php b/Theme/Backend/position-create.tpl.php index 9a2b15f..117bc56 100644 --- a/Theme/Backend/position-create.tpl.php +++ b/Theme/Backend/position-create.tpl.php @@ -1,4 +1,4 @@ -getData('position'); diff --git a/Theme/Backend/unit-create.tpl.php b/Theme/Backend/unit-create.tpl.php index dc9edfb..7ce46ba 100644 --- a/Theme/Backend/unit-create.tpl.php +++ b/Theme/Backend/unit-create.tpl.php @@ -1,4 +1,4 @@ -getData('unit');