Skip to content

Commit

Permalink
Fixed group admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 29, 2021
1 parent 05dc3ca commit f29ba76
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ $numColumns = count($columns);
<tbody>
<tr class="table-secondary">
<td colspan="<?php echo $numColumns; ?>">
<p class="h6 fw-bold m-0">Ad-hoc groups</>
<button type="button" class="btn btn-link btn-text collapse-btn collapsed fw-bold m-0" data-toggle="collapse" data-target=".collapse-adhoc-group-parent" role="button" aria-expanded="false">
Ad-hoc groups
<i class="fa fa-caret-right fa-sm"></i>
</button>
</td>
</tr>
<?php if (count($groupsowners) < 1) : ?>
Expand All @@ -48,7 +51,7 @@ $numColumns = count($columns);
</tr>
<?php endif; ?>
<?php foreach ($groupsowners as $group) : ?>
<tr>
<tr class="collapse collapse-adhoc-group-parent">
<td class="pl-3"><a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
Expand Down Expand Up @@ -99,15 +102,18 @@ $numColumns = count($columns);
<tbody>
<tr class="table-secondary">
<td colspan="<?php echo $numColumns; ?>">
<p class="h6 fw-bold m-0">Working groups</p>
<button type="button" class="btn btn-link btn-text collapse-btn fw-bold m-0" data-toggle="collapse" data-target=".collapse-wg-working-group-parent" role="button" aria-expanded="false">
Working groups
<i class="fa fa-caret-down fa-sm"></i>
</button>
</td>
</tr>
<?php foreach ($wgowners as $wgowner) : ?>
<tr class="table-light">
<tr class="table-light collapse collapse-wg-working-group-parent show">
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text collapse-btn h6 fw-bold m-0 collapsed" data-toggle="collapse" data-target=".collapse-wg-<?php echo $wgowner['WGName']; ?>" role="button" aria-expanded="false">
<button type="button" class="btn btn-link btn-text collapse-btn fw-bold m-0 collapsed" data-toggle="collapse" data-target=".collapse-wg-<?php echo $wgowner['WGName']; ?>" role="button" aria-expanded="false">
<?php echo $wgowner['WGName'] ?? "No Name"; ?>
<i class="fa fa-caret-down fa-sm"></i>
<i class="fa fa-caret-right fa-sm"></i>
</button>
</td>
</tr>
Expand Down Expand Up @@ -155,6 +161,31 @@ $numColumns = count($columns);
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($wggroup['Groups'] as $key => $group) : ?>
<tr class="collapse collapse-wg-<?php echo $wggroup['WGName']; ?>" id="collapse-wg-<?php echo $wggroup['WGName'] . '-' . $key; ?>">
<td class="pl-3">
<a href="<?php echo $this->Html->url(
array(
'controller' => 'grouper_groups',
'action' => 'groupinfo',
'?' => array('groupname' => urlencode($group['name']))
)
) ?>" title="<?php echo $group['name']; ?>">
<?php echo $group['WGApp'] ?? "No Name"; ?></a>
</td>
<?php if ($isuserowner === 'T') : ?>
<td><?php echo $group['WGRole'] ?? _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<?php endif; ?>
<?php if (strpos($group['WGApp'], '@lists') !== false) : ?>
<td><?php echo _txt('pl.grouperlite.value.email'); ?></td>
<?php else : ?>
<td><?php echo _txt('pl.grouperlite.value.' . $group['WGApp']) ?? _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<?php endif; ?>
<td>

</td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
</tbody>
</table>
Expand Down

0 comments on commit f29ba76

Please sign in to comment.