UserController: Allow to add new users in case no users were found
refs #8826
This commit is contained in:
parent
4a48997f47
commit
9fdcadaa97
|
@ -15,7 +15,7 @@ if (! $this->compact): ?>
|
|||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="content">
|
||||
<div class="content users">
|
||||
<?php
|
||||
|
||||
if ($backend === null) {
|
||||
|
@ -31,12 +31,7 @@ if (! isset($users)) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (count($users) === 0) {
|
||||
echo $this->translate('No users found matching the filter') . '</div>';
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
if (count($users) > 0): ?>
|
||||
<table data-base-target="_next" class="action user-list">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -82,6 +77,9 @@ if (count($users) === 0) {
|
|||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<p><?= $this->translate('No users found matching the filter'); ?></p>
|
||||
<?php endif ?>
|
||||
<?php if ($extensible): ?>
|
||||
<?= $this->qlink($this->translate('Add a new user'), 'user/add', array('backend' => $backend->getName()), array(
|
||||
'icon' => 'plus',
|
||||
|
|
|
@ -203,23 +203,29 @@ table.benchmark {
|
|||
background-color: #fbfcc5;
|
||||
}
|
||||
|
||||
table.user-list {
|
||||
th {
|
||||
&.user-state, &.user-remove {
|
||||
width: 6%;
|
||||
padding-right: 0.5em;
|
||||
text-align: right;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
&.user-created, &.user-modified {
|
||||
width: 12%;
|
||||
padding-right: 0.5em;
|
||||
td.user-state, td.user-created, td.user-modified, td.user-remove {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
td.user-state, td.user-created, td.user-modified, td.user-remove {
|
||||
text-align: right;
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue