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