Skip to content

Commit

Permalink
Updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jul 26, 2021
1 parent 42a9f1f commit 4e489a9
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<?php
$columns = [
'name' => 'pl.grouperlite.table.name',
'role' => 'pl.grouperlite.table.role',
// 'role' => 'pl.grouperlite.table.role',
'description' => 'pl.grouperlite.table.description',
'action' => 'pl.grouperlite.table.action'
];

if ($isuserowner !== 'T') {
array_splice($columns, 1, 1);
// array_splice($columns, 1, 1);
}

$numColumns = count($columns);
Expand Down Expand Up @@ -49,9 +49,6 @@ $numColumns = count($columns);
)
) ?>" title="<?php echo $group['name']; ?>"><?php echo $group['friendlyName'] ?? "No Name"; ?></a>
</td>
<?php if ($isuserowner === 'T') { ?>
<td>&mdash;</td>
<?php } ?>
<td><?php echo $group['description'] ?? _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td>
<?php echo $this->element('GrouperLite.Components/optAction', array(
Expand All @@ -71,16 +68,13 @@ $numColumns = count($columns);
</td>
</tr>
<?php foreach ($wgoptins as $i => $wgoptin) : ?>
<tr class="table-light">
<tr class="table-">
<td colspan="<?php echo $numColumns - 2; ?>">
<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 $wgoptin['WGName']; ?>" role="button" aria-expanded="false">
<?php echo $wgoptin['WGName'] ?? "No Name"; ?>
<i class="fa fa-caret-down fa-sm"></i>
</button>
<span class="h6"><?php echo $wgoptin['WGName'] ?? "No Name"; ?></span>
</td>
<td>
<?php echo $wgoptin['workingDesc'] ?? " "; ?>
</td>
<td>
<?php echo $wgoptin['workingDesc'] ?? " "; ?>
</td>
<td>
<?php echo $this->element('GrouperLite.Components/optAction', array(
'member' => $wgoptin['member'],
Expand All @@ -90,25 +84,6 @@ $numColumns = count($columns);
)); ?>
</td>
</tr>
<?php foreach ($wgoptin['Groups'] as $key => $group) : ?>
<tr class="collapse collapse-wg-<?php echo $wgoptin['WGName']; ?>" id="collapse-wg-<?php echo $wgoptin['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 } ?>
<td><?php echo $group['description'] ?? _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td>

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

0 comments on commit 4e489a9

Please sign in to comment.