parent
2520d6a57a
commit
2f05276d32
|
@ -1,51 +1,54 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs; ?>
|
<?= $tabs ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$this->translate('Create A New User Group Backend'),
|
$this->translate('Create A New User Group Backend') ,
|
||||||
'usergroupbackend/create',
|
'usergroupbackend/create',
|
||||||
null,
|
|
||||||
array(
|
|
||||||
'icon' => 'plus'
|
|
||||||
)
|
|
||||||
); ?>
|
|
||||||
<?php if (count($backendNames) > 0): ?>
|
|
||||||
<table class="action usergroupbackend-list alternating">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="backend-name"><?= $this->translate('Backend'); ?></th>
|
|
||||||
<th class="backend-remove"><?= $this->translate('Remove'); ?></th>
|
|
||||||
<tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach ($backendNames as $backendName => $config):
|
|
||||||
$type = $config->get('backend');
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="backend-name">
|
|
||||||
<?= $this->qlink(
|
|
||||||
$backendName,
|
|
||||||
'usergroupbackend/edit',
|
|
||||||
array('backend' => $backendName),
|
|
||||||
array(
|
|
||||||
'icon' => $type === 'external' ? 'magic' : ($type === 'ldap' || $type === 'msldap' ? 'sitemap' : 'database'),
|
|
||||||
'title' => sprintf($this->translate('Edit user group backend %s'), $backendName)
|
|
||||||
)
|
|
||||||
); ?>
|
|
||||||
</td>
|
|
||||||
<td class="backend-remove"><?= $this->qlink(
|
|
||||||
null,
|
null,
|
||||||
'usergroupbackend/remove',
|
|
||||||
array('backend' => $backendName),
|
|
||||||
array(
|
array(
|
||||||
'title' => sprintf($this->translate('Remove user group backend %s'), $backendName),
|
'class' => 'button action-link',
|
||||||
'icon' => 'trash'
|
'icon' => 'plus',
|
||||||
|
'title' => $this->translate('Create a new user group backend')
|
||||||
)
|
)
|
||||||
); ?></td>
|
) ?>
|
||||||
|
<?php if (count($backendNames) > 0): ?>
|
||||||
|
<table class="action-table listing-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->translate('Backend') ?></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
</table>
|
<?php foreach ($backendNames as $backendName => $config):
|
||||||
|
$type = $config->get('backend');
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<?= $this->qlink(
|
||||||
|
$backendName,
|
||||||
|
'usergroupbackend/edit',
|
||||||
|
array('backend' => $backendName),
|
||||||
|
array(
|
||||||
|
'icon' => $type === 'external' ? 'magic' : ($type === 'ldap' || $type === 'msldap' ? 'sitemap' : 'database'),
|
||||||
|
'title' => sprintf($this->translate('Edit user group backend %s'), $backendName)
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-right"><?= $this->qlink(
|
||||||
|
null,
|
||||||
|
'usergroupbackend/remove',
|
||||||
|
array('backend' => $backendName),
|
||||||
|
array(
|
||||||
|
'class' => 'action-link',
|
||||||
|
'icon' => 'cancel',
|
||||||
|
'title' => sprintf($this->translate('Remove user group backend %s'), $backendName)
|
||||||
|
)
|
||||||
|
) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue