Show the create a new role link as button

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 11:36:11 +02:00
parent ee1171ef9d
commit d5c82a6c82
1 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,16 @@
<?= $tabs ?>
</div>
<div class="content">
<?= $this->qlink(
$this->translate('Create A New Role') ,
'role/add',
null,
array(
'class' => 'button action-link',
'icon' => 'plus',
'title' => $this->translate('Create a new role')
)
) ?>
<div>
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
<?= $this->translate('No roles found.') ?>
@ -67,8 +77,5 @@
</tbody>
</table>
<?php endif ?>
<a data-base-target="_next" href="<?= $this->href('role/add') ?>">
<?= $this->translate('Create a New Role') ?>
</a>
</div>
</div>