diff --git a/Theme/Backend/Components/AccountGroupSelector/BaseView.php b/Theme/Backend/Components/AccountGroupSelector/BaseView.php index ae6cf3a..6cb72c0 100644 --- a/Theme/Backend/Components/AccountGroupSelector/BaseView.php +++ b/Theme/Backend/Components/AccountGroupSelector/BaseView.php @@ -31,6 +31,7 @@ use phpOMS\Views\View; class BaseView extends View { private $id = ''; + private $name = ''; private $isRequired = false; /** @@ -50,6 +51,11 @@ class BaseView extends View return $this->id; } + public function getName() : string + { + return $this->name; + } + public function isRequired() : bool { return $this->isRequired; @@ -61,7 +67,8 @@ class BaseView extends View public function render(...$data) : string { $this->id = $data[0]; - $this->isRequired = $data[1] ?? false; + $this->name = $data[1]; + $this->isRequired = $data[2] ?? false; $this->getData('popup')->setId($this->id); return parent::render(); } diff --git a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php index 201691e..8e7b3f6 100644 --- a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php +++ b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php @@ -12,38 +12,40 @@ ] } ]' formaction=""> - - - isRequired() ? ' required' : ''; ?>> +
+ + +
-
\ No newline at end of file +
+ +
\ No newline at end of file