Squashed commit of the following: commit 46595b7ae0bccfc8e5252daf8101e59ff53fdcdf Author: Ramón Cahenzli <rca@psy-q.ch> Date: Thu Nov 16 19:12:11 2017 +0100 Preserve search terms and sort order commit 5445816f1dd7e7de876e226cf8479660a92c07ad Author: Ramón Cahenzli <rca@psy-q.ch> Date: Thu Nov 16 18:53:43 2017 +0100 First working user search. commit 620b9787ef7998c4bf219d25075e35f4cfa3d1ee Author: Ramón Cahenzli <rca@psy-q.ch> Date: Thu Nov 16 16:06:37 2017 +0100 Moving user search to its own action commit 0c17ac2428c2b38c9535f7a63f8be7582e4e332b Author: Ramón Cahenzli <rca@psy-q.ch> Date: Thu Nov 16 14:58:34 2017 +0100 WIP on user search, adding search form
56 lines
1.9 KiB
PHP
56 lines
1.9 KiB
PHP
<div class="page-header">
|
|
<?php if ($this->user->hasAccess('UserCreationController', 'show')): ?>
|
|
<ul>
|
|
<li>
|
|
<?= $this->modal->medium('plus', t('New user'), 'UserCreationController', 'show') ?>
|
|
</li>
|
|
<li>
|
|
<?= $this->modal->medium('paper-plane', t('Invite people'), 'UserInviteController', 'show') ?>
|
|
</li>
|
|
<li>
|
|
<?= $this->modal->medium('upload', t('Import'), 'UserImportController', 'show') ?>
|
|
</li>
|
|
<li>
|
|
<?= $this->url->icon('users', t('View all groups'), 'GroupListController', 'index') ?>
|
|
</li>
|
|
</ul>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
|
|
<div class="filter-box margin-bottom">
|
|
<form method="get" action="<?= $this->url->dir() ?>" class="search">
|
|
<?= $this->form->hidden('controller', array('controller' => 'UserListController')) ?>
|
|
<?= $this->form->hidden('action', array('action' => 'search')) ?>
|
|
|
|
<div class="input-addon">
|
|
<?= $this->form->text('search', $values, array(), array('placeholder="'.t('Search').'"'), 'input-addon-field') ?>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<?php if ($paginator->isEmpty()): ?>
|
|
<p class="alert"><?= t('No users found.') ?></p>
|
|
<?php elseif (! $paginator->isEmpty()): ?>
|
|
<div class="table-list">
|
|
<?= $this->render('user_list/header', array('paginator' => $paginator)) ?>
|
|
<?php foreach ($paginator->getCollection() as $user): ?>
|
|
<div class="table-list-row table-border-left">
|
|
<?= $this->render('user_list/user_title', array(
|
|
'user' => $user,
|
|
)) ?>
|
|
|
|
<?= $this->render('user_list/user_details', array(
|
|
'user' => $user,
|
|
)) ?>
|
|
|
|
<?= $this->render('user_list/user_icons', array(
|
|
'user' => $user,
|
|
)) ?>
|
|
</div>
|
|
<?php endforeach ?>
|
|
</div>
|
|
|
|
<?= $paginator ?>
|
|
<?php endif ?>
|