Make edit user button more prominent

refs #10442
This commit is contained in:
Alexander A. Klimov 2016-02-18 13:07:36 +01:00
parent 97b5800f32
commit 923cd1087f

View File

@ -4,29 +4,28 @@ use Icinga\Data\Updatable;
use Icinga\Data\Reducible; use Icinga\Data\Reducible;
use Icinga\Data\Selectable; use Icinga\Data\Selectable;
$editLink = null; ?>
if ($this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) { <div class="controls separated">
$editLink = $this->qlink( <?php if (! $this->compact): ?>
null, <?= $tabs; ?>
<?php endif ?>
<h2><?= $this->escape($user->user_name) ?></h2>
<?php
if ($this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) {
echo $this->qlink(
$this->translate('Edit User'),
'user/edit', 'user/edit',
array( array(
'backend' => $backend->getName(), 'backend' => $backend->getName(),
'user' => $user->user_name 'user' => $user->user_name
), ),
array( array(
'title' => sprintf($this->translate('Edit user %s'), $user->user_name), 'class' => 'button-link',
'class' => 'user-edit',
'icon' => 'edit' 'icon' => 'edit'
) )
); );
} }
?>
?>
<div class="controls separated">
<?php if (! $this->compact): ?>
<?= $tabs; ?>
<?php endif ?>
<h2 class="clearfix"><?= $this->escape($user->user_name) ?><span class="pull-right"><?= $editLink ?></span></h2>
<table class="name-value-table"> <table class="name-value-table">
<tr> <tr>
<th><?= $this->translate('State'); ?></th> <th><?= $this->translate('State'); ?></th>