Skip to content

Commit

Permalink
Add the Users i manage tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Mar 6, 2024
1 parent 636c3ba commit 70d4480
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
12 changes: 12 additions & 0 deletions View/CoGrouperLiteWidgets/display.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ $idsuffix = rand();
'glid' => $glid
)
); ?>"
},
{
label: "<?php echo _txt('pl.grouperlite.nav.users-presided'); ?>",
url: "<?php print $this->Html->url(
array(
'plugin' => $pl,
'controller' => 'grouper_groups',
'action' => 'usermanager',
'co' => $coid,
'glid' => $glid
)
); ?>"
}
]
}
Expand Down
6 changes: 6 additions & 0 deletions View/GrouperGroups/index.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import GroupMember from '<?= $this->webroot ?>grouper_lite_widget/js/page/GroupMember.js<?= $suffix ?>';
import GroupOptin from '<?= $this->webroot ?>grouper_lite_widget/js/page/GroupOptin.js<?= $suffix ?>';
import GroupOwner from '<?= $this->webroot ?>grouper_lite_widget/js/page/GroupOwner.js<?= $suffix ?>';
import UserManager from '<?= $this->webroot ?>grouper_lite_widget/js/page/UserManager.js<?= $suffix ?>';

<?php
$baseUrl = $vv_config['CoGrouperLiteWidget']['grouper_url'];
Expand All @@ -40,6 +41,10 @@
{
path: '/groupowner/co:co/glid:glid',
component: GroupOwner
},
{
path: '/usermanager/co:co/glid:glid',
component: UserManager
}
]
},
Expand Down Expand Up @@ -102,6 +107,7 @@
memberships: "<?= _txt('pl.grouperlite.nav.memberships') ?>",
optin: "<?= _txt('pl.grouperlite.nav.groups-can-join') ?>",
owner: "<?= _txt('pl.grouperlite.nav.groups-presided') ?>",
manager: "<?= _txt('pl.grouperlite.nav.users-presided') ?>",
},
columns: <?php print_r(json_encode(array(
'name' => _txt('pl.grouperlite.table.name'),
Expand Down
4 changes: 4 additions & 0 deletions webroot/js/grouper-groups-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
Expand Down

0 comments on commit 70d4480

Please sign in to comment.