From 4514bc1d4b4abff23902e46da76e70f13a3647eb Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 16 May 2016 20:55:21 -0400 Subject: Improve user controllers and views --- app/Template/user_list/dropdown.php | 27 +++++++++++++++ app/Template/user_list/show.php | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 app/Template/user_list/dropdown.php create mode 100644 app/Template/user_list/show.php (limited to 'app/Template/user_list') diff --git a/app/Template/user_list/dropdown.php b/app/Template/user_list/dropdown.php new file mode 100644 index 00000000..9e90c230 --- /dev/null +++ b/app/Template/user_list/dropdown.php @@ -0,0 +1,27 @@ + diff --git a/app/Template/user_list/show.php b/app/Template/user_list/show.php new file mode 100644 index 00000000..b2bd9377 --- /dev/null +++ b/app/Template/user_list/show.php @@ -0,0 +1,66 @@ +
+ + isEmpty()): ?> +

+ + + + + + + + + + + + + + getCollection() as $user): ?> + + + + + + + + + + + + +
order(t('Id'), 'id') ?>order(t('Username'), 'username') ?>order(t('Name'), 'name') ?>order(t('Email'), 'email') ?>order(t('Role'), 'role') ?>order(t('Two Factor'), 'twofactor_activated') ?>order(t('Account type'), 'is_ldap_user') ?>order(t('Status'), 'is_active') ?>
+ + + url->link($this->text->e($user['username']), 'UserViewController', 'show', array('user_id' => $user['id'])) ?> + + text->e($user['name']) ?> + + text->e($user['email']) ?> + + user->getRoleName($user['role']) ?> + + + + + + + + + + + + render('user_list/dropdown', array('user' => $user)) ?> +
+ + + +
-- cgit v1.2.3