UserController: Allow to add new users in case no users were found

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-20 14:13:55 +02:00
parent 4a48997f47
commit 9fdcadaa97
2 changed files with 22 additions and 18 deletions

View File

@ -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',

View File

@ -203,7 +203,8 @@ table.benchmark {
background-color: #fbfcc5;
}
table.user-list {
div.content.users {
table.user-list {
th {
&.user-state, &.user-remove {
width: 6%;
@ -221,6 +222,11 @@ table.user-list {
td.user-state, td.user-created, td.user-modified, td.user-remove {
text-align: right;
}
}
p {
margin-top: 0;
}
}
div.content.groups {