mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-20 12:24:29 +02:00
user/show: get rid of useless styles...
...and use our default HTML tags/classes instead
This commit is contained in:
parent
ea0c93c21b
commit
e962b44b5e
@ -5,7 +5,7 @@ use Icinga\Data\Reducible;
|
|||||||
use Icinga\Data\Selectable;
|
use Icinga\Data\Selectable;
|
||||||
|
|
||||||
$editLink = null;
|
$editLink = null;
|
||||||
if ($this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) {
|
if (true || $this->hasPermission('config/authentication/users/edit') && $backend instanceof Updatable) {
|
||||||
$editLink = $this->qlink(
|
$editLink = $this->qlink(
|
||||||
null,
|
null,
|
||||||
'user/edit',
|
'user/edit',
|
||||||
@ -24,25 +24,35 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
|
|||||||
?>
|
?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<?= $tabs; ?>
|
<?= $tabs ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="user-header">
|
|
||||||
<p class="user-name"><strong><?= $this->escape($user->user_name); ?></strong></p> <?= $editLink; ?>
|
<h1><?= $this->escape($user->user_name); ?><span class="pull-right"><?= $editLink ?></span></h1>
|
||||||
<p class="user-state"><strong><?= $this->translate('State'); ?>:</strong> <?= $user->is_active === null ? '-' : ($user->is_active ? $this->translate('Active') : $this->translate('Inactive')); ?></p>
|
|
||||||
<p class="user-created"><strong><?= $this->translate('Created at'); ?>:</strong> <?= $user->created_at === null ? '-' : $this->formatDateTime($user->created_at); ?></p>
|
|
||||||
<p class="user-modified"><strong><?= $this->translate('Last modified'); ?>:</strong> <?= $user->last_modified === null ? '-' : $this->formatDateTime($user->last_modified); ?></p>
|
|
||||||
<h3><?= $this->translate('Group Memberships'); ?></h3>
|
|
||||||
<?php if (! $this->compact): ?>
|
|
||||||
<?= $this->sortBox; ?>
|
|
||||||
<?php endif ?>
|
|
||||||
<?= $this->limiter; ?>
|
|
||||||
<?= $this->paginator; ?>
|
|
||||||
<?php if (! $this->compact): ?>
|
|
||||||
<?= $this->filterEditor; ?>
|
|
||||||
<?php endif ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content memberships" data-base-target="_next">
|
<div class="content">
|
||||||
|
<table class="avp">
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->translate('State'); ?>:</th>
|
||||||
|
<td><?= $user->is_active === null ? '-' : ($user->is_active ? $this->translate('Active') : $this->translate('Inactive')); ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->translate('Created at'); ?>:</th>
|
||||||
|
<td><?= $user->created_at === null ? '-' : $this->formatDateTime($user->created_at); ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->translate('Last modified'); ?>:</th>
|
||||||
|
<td><?= $user->last_modified === null ? '-' : $this->formatDateTime($user->last_modified); ?></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h3><?= $this->translate('Group Memberships'); ?></h3>
|
||||||
|
<?php if (! $this->compact): ?>
|
||||||
|
<?= $this->sortBox ?>
|
||||||
|
<?php endif ?>
|
||||||
|
<?= $this->limiter ?>
|
||||||
|
<?= $this->paginator ?>
|
||||||
|
<?php if (! $this->compact): ?>
|
||||||
|
<?= $this->filterEditor ?>
|
||||||
|
<?php endif ?>
|
||||||
<?php if (count($memberships) > 0): ?>
|
<?php if (count($memberships) > 0): ?>
|
||||||
<table data-base-target="_next" class="action membership-list">
|
<table data-base-target="_next" class="action membership-list">
|
||||||
<thead>
|
<thead>
|
||||||
@ -84,13 +94,18 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
|
|||||||
<p><?= $this->translate('No memberships found matching the filter'); ?></p>
|
<p><?= $this->translate('No memberships found matching the filter'); ?></p>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($showCreateMembershipLink): ?>
|
<?php if ($showCreateMembershipLink): ?>
|
||||||
<?= $this->qlink($this->translate('Create new membership'), 'user/createmembership', array(
|
<?= $this->qlink(
|
||||||
'backend' => $backend->getName(),
|
$this->translate('Create new membership'),
|
||||||
'user' => $user->user_name
|
'user/createmembership',
|
||||||
), array(
|
array(
|
||||||
'icon' => 'plus',
|
'backend' => $backend->getName(),
|
||||||
'data-base-target' => '_next',
|
'user' => $user->user_name
|
||||||
'class' => 'membership-create'
|
),
|
||||||
)); ?>
|
array(
|
||||||
|
'icon' => 'plus',
|
||||||
|
'data-base-target' => '_next',
|
||||||
|
'class' => 'membership-create'
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
@ -201,6 +201,7 @@ tr[href] {
|
|||||||
/* End of table behaviour */
|
/* End of table behaviour */
|
||||||
|
|
||||||
|
|
||||||
|
/* TODO: get rid of most if not all styles below this line */
|
||||||
div.content.users {
|
div.content.users {
|
||||||
table.user-list {
|
table.user-list {
|
||||||
th.user-remove {
|
th.user-remove {
|
||||||
@ -224,19 +225,6 @@ div.content.users {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.controls div.user-header {
|
|
||||||
.user-name {
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0 0 0.3em;
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-state, .user-created, .user-modified {
|
|
||||||
margin: 0 0 0.2em;
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
div.content.memberships {
|
div.content.memberships {
|
||||||
table.membership-list {
|
table.membership-list {
|
||||||
th.membership-cancel {
|
th.membership-cancel {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user