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 ++++++++++++------ app/Template/user_list/dropdown.php | 2 +- app/Template/user_list/show.php | 10 +++------- 4 files changed, 27 insertions(+), 29 deletions(-) (limited to 'app/Template') 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'])) ?> -
diff --git a/app/Template/user_list/dropdown.php b/app/Template/user_list/dropdown.php index d18f20aa..6c076feb 100644 --- a/app/Template/user_list/dropdown.php +++ b/app/Template/user_list/dropdown.php @@ -1,5 +1,5 @@