mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
331822ad15
commit
2168839349
@ -52,7 +52,7 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div class="content memberships">
|
||||
<?php if ($showCreateMembershipLink): ?>
|
||||
<?php if ($showCreateMembershipLink): ?>
|
||||
<?= $this->qlink(
|
||||
$this->translate('Add User to Group') ,
|
||||
'user/createmembership',
|
||||
@ -64,13 +64,13 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
|
||||
'title' => $this->translate('Add user to user group')
|
||||
)
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
// @TODO(el): Remove that $firstRow thingy
|
||||
$firstRow = true;
|
||||
foreach ($memberships as $membership): ?>
|
||||
<?php if ($firstRow): ?>
|
||||
<?php $firstRow = false; ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! $memberships->hasResult()): ?>
|
||||
<p><?= $this->translate('No memberships found matching the filter'); ?></p>
|
||||
</div>
|
||||
<?php return; endif ?>
|
||||
|
||||
<table data-base-target="_next" class="action-table listing-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -79,7 +79,7 @@ foreach ($memberships as $membership): ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php endif ?>
|
||||
<?php foreach ($memberships as $membership): ?>
|
||||
<tr>
|
||||
<td class="membership-group">
|
||||
<?php if ($this->hasPermission('config/authentication/groups/show') && $membership->backend instanceof Selectable): ?>
|
||||
@ -104,11 +104,7 @@ foreach ($memberships as $membership): ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php if ($memberships->hasResult()): ?>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<p><?= $this->translate('No memberships found matching the filter'); ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user