UserController: Just show a user's name when listing users
Any additional information will be shown in the detail view soon. refs #8826
This commit is contained in:
parent
9fdcadaa97
commit
9891dc4491
|
@ -64,13 +64,7 @@ class UserController extends Controller
|
|||
return;
|
||||
}
|
||||
|
||||
$query = $backend->select(array(
|
||||
'user_name',
|
||||
'is_active',
|
||||
'created_at',
|
||||
'last_modified'
|
||||
));
|
||||
|
||||
$query = $backend->select(array('user_name'));
|
||||
$filterEditor = Widget::create('filterEditor')
|
||||
->setQuery($query)
|
||||
->preserveParams('limit', 'sort', 'dir', 'view', 'backend')
|
||||
|
|
|
@ -36,9 +36,6 @@ if (count($users) > 0): ?>
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="user-name"><?= $this->translate('Username'); ?></th>
|
||||
<th class="user-state"><?= $this->translate('State'); ?></th>
|
||||
<th class="user-created"><?= $this->translate('Created at'); ?></th>
|
||||
<th class="user-modified"><?= $this->translate('Last modified'); ?></th>
|
||||
<?php if ($reducible): ?>
|
||||
<th class="user-remove"><?= $this->translate('Remove'); ?></th>
|
||||
<?php endif ?>
|
||||
|
@ -48,15 +45,6 @@ if (count($users) > 0): ?>
|
|||
<?php foreach ($users as $user): ?>
|
||||
<tr>
|
||||
<td clas="user-name"><?= $this->escape($user->user_name); ?></td>
|
||||
<td class="user-state"><?= $user->is_active === null ? $this->translate('N/A') : (
|
||||
$user->is_active ? $this->translate('Active') : $this->translate('Inactive')
|
||||
); ?></td>
|
||||
<td class="user-created">
|
||||
<?= $user->created_at === null ? $this->translate('N/A') : date('d/m/Y g:i A', $user->created_at); ?>
|
||||
</td>
|
||||
<td class="user-modified">
|
||||
<?= $user->last_modified === null ? $this->translate('Never') : date('d/m/Y g:i A', $user->last_modified); ?>
|
||||
</td>
|
||||
<?php if ($reducible): ?>
|
||||
<td class="user-remove">
|
||||
<?= $this->qlink(
|
||||
|
|
|
@ -205,21 +205,13 @@ table.benchmark {
|
|||
|
||||
div.content.users {
|
||||
table.user-list {
|
||||
th {
|
||||
&.user-state, &.user-remove {
|
||||
width: 6%;
|
||||
padding-right: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.user-created, &.user-modified {
|
||||
width: 12%;
|
||||
padding-right: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
th.user-remove {
|
||||
width: 8em;
|
||||
padding-right: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
td.user-state, td.user-created, td.user-modified, td.user-remove {
|
||||
td.user-remove {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
@ -227,6 +219,11 @@ div.content.users {
|
|||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
a.user-add {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
div.content.groups {
|
||||
|
|
Loading…
Reference in New Issue