diff --git a/Theme/Backend/Components/GroupTagSelector/group-selector-popup.tpl.php b/Theme/Backend/Components/GroupTagSelector/group-selector-popup.tpl.php
index 07c6580..2991eef 100755
--- a/Theme/Backend/Components/GroupTagSelector/group-selector-popup.tpl.php
+++ b/Theme/Backend/Components/GroupTagSelector/group-selector-popup.tpl.php
@@ -9,7 +9,7 @@
"key": 1, "listener": "keyup", "action": [
{"key": 1, "type": "utils.timer", "id": "iSearchGroup", "delay": 500, "resets": true},
{"key": 2, "type": "dom.table.clear", "id": "acc-table"},
- {"key": 3, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={#iSearchGroup}", "method": "GET", "request_type": "json"},
+ {"key": 3, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={!#iSearchGroup}", "method": "GET", "request_type": "json"},
{"key": 4, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1}
]
}
diff --git a/Theme/Backend/Components/GroupTagSelector/group-selector.tpl.php b/Theme/Backend/Components/GroupTagSelector/group-selector.tpl.php
index d695216..1fe1336 100755
--- a/Theme/Backend/Components/GroupTagSelector/group-selector.tpl.php
+++ b/Theme/Backend/Components/GroupTagSelector/group-selector.tpl.php
@@ -18,14 +18,14 @@
{"key": 1, "type": "validate.keypress", "pressed": "!13!37!38!39!40"},
{"key": 2, "type": "utils.timer", "id": "= $this->printHtml($this->getId()); ?>", "delay": 500, "resets": true},
{"key": 3, "type": "dom.datalist.clear", "id": "= $this->printHtml($this->getId()); ?>-datalist"},
- {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={#= $this->printHtml($this->getId()); ?>}", "method": "GET", "request_type": "json"},
+ {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={!#= $this->printHtml($this->getId()); ?>}", "method": "GET", "request_type": "json"},
{"key": 5, "type": "dom.datalist.append", "id": "= $this->printHtml($this->getId()); ?>-datalist", "value": "id", "text": "name"}
]
},
{
"key": 2, "listener": "keydown", "action" : [
{"key": 1, "type": "validate.keypress", "pressed": "13|9"},
- {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={#= $this->printHtml($this->getId()); ?>}", "method": "GET", "request_type": "json"},
+ {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/group?search={!#= $this->printHtml($this->getId()); ?>}", "method": "GET", "request_type": "json"},
{"key": 3, "type": "dom.setvalue", "overwrite": true, "selector": "#= $this->printHtml($this->getId()); ?>-idlist", "value": "{0/id}", "data": ""},
{"key": 4, "type": "dom.setvalue", "overwrite": true, "selector": "#= $this->printHtml($this->getId()); ?>-taglist", "value": "printHtml($this->getId()); ?>-taglist-{0/id}\" class=\"tag red\" data-id=\"{0/id}\"> {0/name}", "data": ""},
{"key": 5, "type": "dom.setvalue", "overwrite": true, "selector": "#= $this->printHtml($this->getId()); ?>", "value": "", "data": ""}
diff --git a/Theme/Backend/accounts-single.tpl.php b/Theme/Backend/accounts-single.tpl.php
index 918eba2..a08e70e 100755
--- a/Theme/Backend/accounts-single.tpl.php
+++ b/Theme/Backend/accounts-single.tpl.php
@@ -14,6 +14,7 @@ declare(strict_types=1);
use phpOMS\Account\AccountStatus;
use phpOMS\Account\AccountType;
+use phpOMS\Account\PermissionOwner;
use phpOMS\Account\PermissionType;
use phpOMS\Uri\UriFactory;
@@ -166,42 +167,44 @@ echo $this->getData('nav')->render(); ?>
= $this->getHtml('Permissions') ?>
-
-
-
- |
- |
- | = $this->getHtml('ID', '0', '0'); ?>
- | = $this->getHtml('Unit'); ?>
- | = $this->getHtml('App'); ?>
- | = $this->getHtml('Module'); ?>
- | = $this->getHtml('Type'); ?>
- | = $this->getHtml('Ele'); ?>
- | = $this->getHtml('Comp'); ?>
- | = $this->getHtml('Perm'); ?>
- |
- $value) : ++$c; $permission = $value->getPermission(); ?>
-
- |
- |
- | = $value->getId(); ?>
- | = $value->getUnit(); ?>
- | = $value->getApp(); ?>
- | = $value->getModule(); ?>
- | = $value->getType(); ?>
- | = $value->getElement(); ?>
- | = $value->getComponent(); ?>
- |
- = (PermissionType::CREATE | $permission) === $permission ? 'C' : ''; ?>
- = (PermissionType::READ | $permission) === $permission ? 'R' : ''; ?>
- = (PermissionType::MODIFY | $permission) === $permission ? 'U' : ''; ?>
- = (PermissionType::DELETE | $permission) === $permission ? 'D' : ''; ?>
- = (PermissionType::PERMISSION | $permission) === $permission ? 'P' : ''; ?>
-
-
- |
| = $this->getHtml('Empty', '0', '0'); ?>
-
- |
+
+
+
+
+ |
+ |
+ | = $this->getHtml('ID', '0', '0'); ?>
+ | = $this->getHtml('Unit'); ?>
+ | = $this->getHtml('App'); ?>
+ | = $this->getHtml('Module'); ?>
+ | = $this->getHtml('Type'); ?>
+ | = $this->getHtml('Ele'); ?>
+ | = $this->getHtml('Comp'); ?>
+ | = $this->getHtml('Perm'); ?>
+ |
+ $value) : ++$c; $permission = $value->getPermission(); ?>
+
+ |
+ |
+ | = $value->getId(); ?>
+ | = $value->getUnit(); ?>
+ | = $value->getApp(); ?>
+ | = $value->getModule(); ?>
+ | = $value->getType(); ?>
+ | = $value->getElement(); ?>
+ | = $value->getComponent(); ?>
+ |
+ = (PermissionType::CREATE | $permission) === $permission ? 'C' : ''; ?>
+ = (PermissionType::READ | $permission) === $permission ? 'R' : ''; ?>
+ = (PermissionType::MODIFY | $permission) === $permission ? 'U' : ''; ?>
+ = (PermissionType::DELETE | $permission) === $permission ? 'D' : ''; ?>
+ = (PermissionType::PERMISSION | $permission) === $permission ? 'P' : ''; ?>
+
+
+ |
| = $this->getHtml('Empty', '0', '0'); ?>
+
+ |
+
@@ -248,7 +251,7 @@ echo $this->getData('nav')->render(); ?>
diff --git a/Theme/Backend/groups-single.tpl.php b/Theme/Backend/groups-single.tpl.php
index 03bbce3..50d0526 100755
--- a/Theme/Backend/groups-single.tpl.php
+++ b/Theme/Backend/groups-single.tpl.php
@@ -12,6 +12,9 @@
*/
declare(strict_types=1);
+use phpOMS\Account\PermissionType;
+use phpOMS\Account\GroupStatus;
+use phpOMS\Account\PermissionOwner;
use phpOMS\Uri\UriFactory;
/**
@@ -71,7 +74,7 @@ echo $this->getData('nav')->render(); ?>
@@ -129,63 +132,64 @@ echo $this->getData('nav')->render(); ?>
= $this->getHtml('Permissions') ?>
-
-
-
- |
- |
- | = $this->getHtml('ID', '0', '0'); ?>
- | = $this->getHtml('Unit'); ?>
- | = $this->getHtml('App'); ?>
- | = $this->getHtml('Module'); ?>
- | = $this->getHtml('Type'); ?>
- | = $this->getHtml('Ele'); ?>
- | = $this->getHtml('Comp'); ?>
- | = $this->getHtml('Perm'); ?>
- |
-
+
+
+
+
+ |
+ |
+ | = $this->getHtml('ID', '0', '0'); ?>
+ | = $this->getHtml('Unit'); ?>
+ | = $this->getHtml('App'); ?>
+ | = $this->getHtml('Module'); ?>
+ | = $this->getHtml('Type'); ?>
+ | = $this->getHtml('Ele'); ?>
+ | = $this->getHtml('Comp'); ?>
+ | = $this->getHtml('Perm'); ?>
+ |
+
+
+ |
+ |
+ | |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+ |
+
+
+ $value) : ++$c; $permission = $value->getPermission(); ?>
|
|
- | |
- |
- |
- |
- |
- |
- |
+ = $value->getId(); ?>
+ | = $value->getUnit(); ?>
+ | = $value->getApp(); ?>
+ | = $value->getModule(); ?>
+ | = $value->getType(); ?>
+ | = $value->getElement(); ?>
+ | = $value->getComponent(); ?>
|
-
-
-
-
-
- |
-
-
- $value) : ++$c; $permission = $value->getPermission(); ?>
-
- |
- |
- | = $value->getId(); ?>
- | = $value->getUnit(); ?>
- | = $value->getApp(); ?>
- | = $value->getModule(); ?>
- | = $value->getType(); ?>
- | = $value->getElement(); ?>
- | = $value->getComponent(); ?>
- |
- = (\phpOMS\Account\PermissionType::CREATE | $permission) === $permission ? 'C' : ''; ?>
- = (\phpOMS\Account\PermissionType::READ | $permission) === $permission ? 'R' : ''; ?>
- = (\phpOMS\Account\PermissionType::MODIFY | $permission) === $permission ? 'U' : ''; ?>
- = (\phpOMS\Account\PermissionType::DELETE | $permission) === $permission ? 'D' : ''; ?>
- = (\phpOMS\Account\PermissionType::PERMISSION | $permission) === $permission ? 'P' : ''; ?>
-
-
- |
| = $this->getHtml('Empty', '0', '0'); ?>
-
- |
-
+ = (PermissionType::CREATE | $permission) === $permission ? 'C' : ''; ?>
+ = (PermissionType::READ | $permission) === $permission ? 'R' : ''; ?>
+ = (PermissionType::MODIFY | $permission) === $permission ? 'U' : ''; ?>
+ = (PermissionType::DELETE | $permission) === $permission ? 'D' : ''; ?>
+ = (PermissionType::PERMISSION | $permission) === $permission ? 'P' : ''; ?>
+
+
+
| = $this->getHtml('Empty', '0', '0'); ?>
+
+ |
+
@@ -210,30 +214,30 @@ echo $this->getData('nav')->render(); ?>
|
|
|
-
+
-
+
-
+
-
+
-
+
|