Skip to content

Commit

Permalink
Display the add new user button to the user table
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 25, 2015
1 parent 1728d5a commit 2e6fed8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions application/views/scripts/user/list.phtml
Expand Up @@ -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>
Expand Down Expand Up @@ -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>

0 comments on commit 2e6fed8

Please sign in to comment.