Display the add new user button to the user table

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 12:25:09 +02:00
parent 1728d5a949
commit 2e6fed8862
1 changed files with 7 additions and 7 deletions

View File

@ -28,6 +28,13 @@ if (! $this->compact): ?>
$extensible = $this->hasPermission('config/authentication/users/add') && $backend instanceof Extensible;
$reducible = $this->hasPermission('config/authentication/users/remove') && $backend instanceof Reducible;
?>
<?php if ($extensible): ?>
<?= $this->qlink($this->translate('Add a new user'), 'user/add', array('backend' => $backend->getName()), array(
'icon' => 'plus',
'data-base-target' => '_next',
'class' => 'user-add'
)) ?>
<?php endif ?>
<table data-base-target="_next" class="action user-list alternating">
<thead>
<tr>
@ -69,11 +76,4 @@ $reducible = $this->hasPermission('config/authentication/users/remove') && $back
<?php endforeach ?>
</tbody>
</table>
<?php if ($extensible): ?>
<?= $this->qlink($this->translate('Add a new user'), 'user/add', array('backend' => $backend->getName()), array(
'icon' => 'plus',
'data-base-target' => '_next',
'class' => 'user-add'
)) ?>
<?php endif ?>
</div>