Skip to content

Commit

Permalink
Added popover for ad-hoc groups
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 12, 2021
1 parent 01d79fa commit 8d45b09
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
10 changes: 9 additions & 1 deletion View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ $numColumns = count($columns);
<?php foreach ($groupmemberships as $key => $group) : ?>
<tr class="collapse collapse-adhoc-group-parent">
<td class="pl-3">
<?php echo $group['friendlyName'] ?? "No Name"; ?>
<span class="grpr-popover-toggle" data-container="body" data-toggle="popover" data-placement="top" data-content="<?php echo $group['name']; ?>">
<?php echo $group['friendlyName'] ?? "No Name"; ?>
</span>
</td>
<?php if ($isuserowner === 'T') { ?>
<td>&mdash;</td>
Expand Down Expand Up @@ -160,6 +162,12 @@ $numColumns = count($columns);
'counter' => false
)); ?>
</div>
<script>
$('.grpr-popover-toggle').popover({
placement: 'top',
trigger: 'hover'
});
</script>
<?php endif; ?>
<?php if (count($groupmemberships) < 1 && count($wgmemberships) < 1) : ?>
<div class="alert alert-info">
Expand Down
11 changes: 10 additions & 1 deletion View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ $numColumns = count($columns);
</tr>
<?php foreach ($groupoptins as $key => $group) : ?>
<tr class="collapse collapse-adhoc-group-parent">
<td class="pl-3"><?php echo $group['friendlyName'] ?? "No Name"; ?>
<td class="pl-3">
<span class="grpr-popover-toggle" data-container="body" data-toggle="popover" data-placement="top" data-content="<?php echo $group['name']; ?>">
<?php echo $group['friendlyName'] ?? "No Name"; ?>
</span>
</td>
<td><?php echo $group['description'] ?? _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td>
Expand Down Expand Up @@ -94,6 +97,12 @@ $numColumns = count($columns);
'counter' => false
)); ?>
</div>
<script>
$('.grpr-popover-toggle').popover({
placement: 'top',
trigger: 'hover'
});
</script>
<?php endif; ?>
<?php if (count($groupoptins) < 1 && count($wgoptins) < 1) : ?>
<div class="alert alert-info">
Expand Down
12 changes: 11 additions & 1 deletion View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ $numColumns = count($columns);
<?php endif; ?>
<?php foreach ($groupsowners as $group) : ?>
<tr class="collapse collapse-adhoc-group-parent">
<td class="pl-3"><?php echo $group['friendlyName'] ?? "No Name"; ?></td>
<td class="pl-3">
<span class="grpr-popover-toggle" data-container="body" data-toggle="popover" data-placement="top" data-content="<?php echo $group['name']; ?>">
<?php echo $group['friendlyName'] ?? "No Name"; ?>
</span>
</td>
<?php if ($isuserowner === 'T') { ?>
<td>&mdash;</td>
<?php } ?>
Expand Down Expand Up @@ -179,6 +183,12 @@ $numColumns = count($columns);
'counter' => false
)); ?>
</div>
<script>
$('.grpr-popover-toggle').popover({
placement: 'top',
trigger: 'hover'
});
</script>
<?php endif; ?>
<?php if (count($groupsowners) < 1 && count($wgowners) < 1) : ?>
<div class="alert alert-info">
Expand Down

0 comments on commit 8d45b09

Please sign in to comment.