From 70d448096344d8bf355e46a35f1d9888d10ffcba Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 6 Mar 2024 20:36:49 +0200 Subject: [PATCH] Add the Users i manage tab --- Controller/GrouperGroupsController.php | 10 ++++++++++ View/CoGrouperLiteWidgets/display.ctp | 12 ++++++++++++ View/GrouperGroups/index.ctp | 6 ++++++ webroot/js/grouper-groups-view.js | 4 ++++ 4 files changed, 32 insertions(+) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 76bedd8..ae3e336 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -596,6 +596,16 @@ public function restResponse(int $status, $this->response->send(); } + /** + * UserManager vue route for rendering + * + * @return void + */ + public function userManager(): void + { + $this->render('index'); + } + /** * Override the default sanity check performed in AppController * diff --git a/View/CoGrouperLiteWidgets/display.ctp b/View/CoGrouperLiteWidgets/display.ctp index ccf0c76..8cb6201 100644 --- a/View/CoGrouperLiteWidgets/display.ctp +++ b/View/CoGrouperLiteWidgets/display.ctp @@ -91,6 +91,18 @@ $idsuffix = rand(); 'glid' => $glid ) ); ?>" + }, + { + label: "", + url: "Html->url( + array( + 'plugin' => $pl, + 'controller' => 'grouper_groups', + 'action' => 'usermanager', + 'co' => $coid, + 'glid' => $glid + ) + ); ?>" } ] } diff --git a/View/GrouperGroups/index.ctp b/View/GrouperGroups/index.ctp index 48ed270..376f9e3 100644 --- a/View/GrouperGroups/index.ctp +++ b/View/GrouperGroups/index.ctp @@ -14,6 +14,7 @@ import GroupMember from 'webroot ?>grouper_lite_widget/js/page/GroupMember.js'; import GroupOptin from 'webroot ?>grouper_lite_widget/js/page/GroupOptin.js'; import GroupOwner from 'webroot ?>grouper_lite_widget/js/page/GroupOwner.js'; + import UserManager from 'webroot ?>grouper_lite_widget/js/page/UserManager.js'; ", optin: "", owner: "", + manager: "", }, columns: _txt('pl.grouperlite.table.name'), diff --git a/webroot/js/grouper-groups-view.js b/webroot/js/grouper-groups-view.js index e2a508d..7d75678 100644 --- a/webroot/js/grouper-groups-view.js +++ b/webroot/js/grouper-groups-view.js @@ -25,6 +25,10 @@ export default { { path: `/groupowner/co:${this.api.co}/glid:${this.api.glid}`, label: this.txt.tabs.owner + }, + { + path: `/usermanager/co:${this.api.co}/glid:${this.api.glid}`, + label: this.txt.tabs.manager } ] }