From 7ae003d1a9b7d7ac76c4be26f34db6f1de552b9e Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Tue, 8 Mar 2022 10:04:58 -0700 Subject: [PATCH 1/2] Removed email list navigation --- View/CoGrouperLites/display.ctp | 9 +++++---- View/Elements/Components/navigation-groups.ctp | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/View/CoGrouperLites/display.ctp b/View/CoGrouperLites/display.ctp index ed399f5..052c999 100644 --- a/View/CoGrouperLites/display.ctp +++ b/View/CoGrouperLites/display.ctp @@ -39,15 +39,15 @@ echo $this->element('GrouperLite.base-styles');
-
+
-
+
Html->image('GrouperLite.grouper-logo.png', array('class' => 'logo-fluid')); ?>
-
diff --git a/View/Elements/Components/navigation-groups.ctp b/View/Elements/Components/navigation-groups.ctp index 3c1f816..cd04cf8 100644 --- a/View/Elements/Components/navigation-groups.ctp +++ b/View/Elements/Components/navigation-groups.ctp @@ -68,6 +68,7 @@
+ Html->url( @@ -81,4 +82,5 @@  
+ */ ?> \ No newline at end of file From 49096bfca9ad9c1d19745fb87a3baee927801efc Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Wed, 9 Mar 2022 14:21:05 -0700 Subject: [PATCH 2/2] Added buttons for adding/removing users --- Lib/GrouperApiAccess.php | 5 +- Lib/lang.php | 5 + View/Elements/Components/subscriberList.ctp | 195 ++++++++++++++++---- 3 files changed, 162 insertions(+), 43 deletions(-) diff --git a/Lib/GrouperApiAccess.php b/Lib/GrouperApiAccess.php index f336b95..598d3f8 100644 --- a/Lib/GrouperApiAccess.php +++ b/Lib/GrouperApiAccess.php @@ -84,8 +84,9 @@ public function getGrouperMemberOfGroups(array $queryData) { //Build request logic $userId = $queryData['userId']; - $connectionUrl = "{$this->config['fullUrl']}/subjects/$userId/groups?"; - $connectionUrl .= "wsLiteObjectType=WsRestGetGroupsLiteRequest&actAsSubjectSourceId=ldap&actAsSubjectId=$userId"; + $connectionUrl = "{$this->config['fullUrl']}/subjects/$userId/groups"; + // $connectionUrl = "{$this->config['fullUrl']}/subjects/$userId/groups?"; + // $connectionUrl .= "wsLiteObjectType=WsRestGetGroupsLiteRequest&actAsSubjectSourceId=ldap&actAsSubjectId=$userId"; try { $results = $this->http->sendRequest('GET', $connectionUrl); diff --git a/Lib/lang.php b/Lib/lang.php index 566d182..e338d76 100644 --- a/Lib/lang.php +++ b/Lib/lang.php @@ -113,6 +113,11 @@ 'pl.grouperlite.action.members' => 'Members', 'pl.grouperlite.action.close' => 'Close', 'pl.grouperlite.action.clear' => 'Clear', + 'pl.grouperlite.action.add-user' => 'Add', + 'pl.grouperlite.action.remove-user' => 'Remove', + 'pl.grouperlite.message.user-not-found-error' => 'Error: User not found.', + 'pl.grouperlite.message.user-not-added-error' => 'Error: Unable to add user.', + 'pl.grouperlite.message.user-not-removed-error' => 'Error: Unable to remove user.', 'pl.grouperlite.form.group.template.label' => 'Select a template', 'pl.grouperlite.form.group.template.empty' => '(choose one)', diff --git a/View/Elements/Components/subscriberList.ctp b/View/Elements/Components/subscriberList.ctp index d2ed38f..d15b0f0 100644 --- a/View/Elements/Components/subscriberList.ctp +++ b/View/Elements/Components/subscriberList.ctp @@ -1,5 +1,5 @@