From a559dc0be739d6ff18749c17135ce3c403575171 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 14 Feb 2017 22:09:29 -0500 Subject: Use contextual menu instead of action column in users management --- app/Template/group/index.php | 26 +++++++++++--------------- app/Template/group/users.php | 18 ++++++++++++------ 2 files changed, 23 insertions(+), 21 deletions(-) (limited to 'app/Template/group') diff --git a/app/Template/group/index.php b/app/Template/group/index.php index fe3f398e..e4856a70 100644 --- a/app/Template/group/index.php +++ b/app/Template/group/index.php @@ -11,31 +11,27 @@ - - + getCollection() as $group): ?> - diff --git a/app/Template/group/users.php b/app/Template/group/users.php index ef179674..268f28de 100644 --- a/app/Template/group/users.php +++ b/app/Template/group/users.php @@ -10,16 +10,25 @@
order(t('Id'), 'id') ?>order(t('External Id'), 'external_id') ?> order(t('Name'), 'name') ?>order(t('External Id'), 'external_id') ?>
- # - - text->e($group['external_id']) ?> + url->link($this->text->e($group['name']), 'GroupListController', 'users', array('group_id' => $group['id'])) ?> - + text->e($group['external_id']) ?>
- + - getCollection() as $user): ?> -
order(t('Id'), 'id') ?>order(t('Id'), 'id') ?> order(t('Username'), 'username') ?> order(t('Name'), 'name') ?> order(t('Email'), 'email') ?>
- url->link('#'.$user['id'], 'UserViewController', 'show', array('user_id' => $user['id'])) ?> + url->link($this->text->e($user['username']), 'UserViewController', 'show', array('user_id' => $user['id'])) ?> @@ -30,9 +39,6 @@ text->e($user['email']) ?> - modal->confirm('trash-o', t('Remove this user'), 'GroupListController', 'dissociate', array('group_id' => $group['id'], 'user_id' => $user['id'])) ?> -
-- cgit v1.2.3