Skip to content

Commit

Permalink
Updated group tab pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jan 29, 2021
1 parent 96b92f0 commit b284310
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Lib/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'pl.grouperlite.config.grouper-un' => 'Username',
'pl.grouperlite.config.grouper-pw' => 'Password',

'pl.grouperlite.crumb.root' => 'Groups',
'pl.grouperlite.crumb.root' => 'Grouper',
'pl.grouperlite.nav.groups-can-join' => 'Groups I can join',
'pl.grouperlite.nav.groups-presided' => 'Groups I manage',
'pl.grouperlite.nav.memberships' => 'My memberships',
Expand Down
4 changes: 3 additions & 1 deletion View/Elements/Components/navigation.ctp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav id="grouper-plugin-tabs" class="nav nav-tabs mb-4 justify-content-between">
<nav id="grouper-plugin-tabs" class="nav nav-tabs mb-4 justify-content-start">
<div class="d-flex nav-tab-group">
<div class="nav-item">
<?php
Expand Down Expand Up @@ -36,6 +36,7 @@
)
?>
</div>
<?php /*
<div class="nav-item">
<?php
print $this->Html->link(
Expand All @@ -60,6 +61,7 @@
)
?>
</div>
*/ ?>
</div>
<div class="align-self">
<?php
Expand Down
7 changes: 4 additions & 3 deletions View/GrouperGroups/base.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
print $this->Html->css('GrouperLite.co-grouper-base') . "\n ";
print $this->Html->css('GrouperLite.co-grouper-plugin') . "\n ";
?>
<!-- Load JavaScript -->
<!-- Load JavaScript -->
<?php /* only JQuery here - other scripts at bottom */
print $this->Html->script('GrouperLite.typeahead.bundle.js') . "\n ";

$this->Html->addCrumb(_txt('pl.grouperlite.crumb.root'), array('controller' => 'groupergroups', 'action' => 'groupoptin'), array('prepend' => true));
?>

<div id="grouper-plugin" class="pt-2">
<div class="d-flex align-items-center">
<div class="d-flex align-items-center mb-4">
<?php print $this->Html->image('GrouperLite.Grouper.jpg', array('class' => 'img-fluid mr-2', 'style' => 'height: 50px')); ?>
<h2><?php echo $title; ?></h2>
</div>
<?php echo $this->fetch('content'); ?>
Expand Down
10 changes: 8 additions & 2 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
<th class="group description"><?php echo _txt('pl.grouperlite.table.description'); ?></th>
<th class="group status"><?php echo _txt('pl.grouperlite.table.status'); ?></th>
<th class="group action"><?php echo _txt('pl.grouperlite.table.action'); ?></th>
</tr>
</thead>
<tbody>
Expand All @@ -23,7 +23,13 @@
)
) ?></td>
<td><?php echo isset($group['description']) ? $group['description'] : _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td><?php echo isset($group['enabled']) && $group['enabled'] === 'T' ? _txt('pl.grouperlite.value.enabled') : _txt('pl.grouperlite.value.disabled'); ?></td>
<td>
<?php echo $this->element('GrouperLite.Components/optAction', array(
'member' => $group['member'],
'leavegroup',
'group' => $group['name']
)); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down
4 changes: 1 addition & 3 deletions View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
<th class="group description"><?php echo _txt('pl.grouperlite.table.description'); ?></th>
<th class="group status"><?php echo _txt('pl.grouperlite.table.status'); ?></th>
<th class="group action"><?php echo _txt('pl.grouperlite.table.action'); ?></th>
</tr>
</thead>
Expand All @@ -25,11 +24,10 @@
)
) ?></td>
<td><?php echo isset($group['description']) ? $group['description'] : _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td><?php echo isset($group['enabled']) && $group['enabled'] === 'T' ? _txt('pl.grouperlite.value.enabled') : _txt('pl.grouperlite.value.disabled'); ?></td>
<td>
<?php echo $this->element('GrouperLite.Components/optAction', array(
'member' => $group['member'],
'action' => $group['member'] ? 'leavegroup' : 'joingroup',
'joingroup',
'group' => $group['name']
)); ?>
</td>
Expand Down

0 comments on commit b284310

Please sign in to comment.