diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-26 12:17:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-26 12:17:39 -0500 |
commit | 159c31cd3f23f45c1cf51c71f1049714ea603eb3 (patch) | |
tree | 7f54c6bea694dba49d68a4faf4481ed95edf4563 /app/Template/user_list/listing.php | |
parent | 954b7324f08e633087a1f6809a80c5892e39bcb0 (diff) |
Redesign users list layout
Diffstat (limited to 'app/Template/user_list/listing.php')
-rw-r--r-- | app/Template/user_list/listing.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/Template/user_list/listing.php b/app/Template/user_list/listing.php new file mode 100644 index 00000000..899a20e7 --- /dev/null +++ b/app/Template/user_list/listing.php @@ -0,0 +1,43 @@ +<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> + +<?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 ?> |