From de8ce875f4295e0b3bef20fcca051401f96816ef Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 15 May 2016 21:54:50 -0400 Subject: Rename UserStatus controller --- app/Template/user/dropdown.php | 14 +++++++------- app/Template/user_status/disable.php | 2 +- app/Template/user_status/enable.php | 2 +- app/Template/user_status/remove.php | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'app/Template') diff --git a/app/Template/user/dropdown.php b/app/Template/user/dropdown.php index b74ed6e0..086bf01b 100644 --- a/app/Template/user/dropdown.php +++ b/app/Template/user/dropdown.php @@ -5,23 +5,23 @@ url->link(t('View profile'), 'user', 'show', array('user_id' => $user['id'])) ?> - user->hasAccess('UserStatus', 'disable') && ! $this->user->isCurrentUser($user['id'])): ?> + user->hasAccess('UserStatusController', 'disable') && ! $this->user->isCurrentUser($user['id'])): ?>
  • - url->link(t('Disable'), 'UserStatus', 'confirmDisable', array('user_id' => $user['id']), false, 'popover') ?> + url->link(t('Disable'), 'UserStatusController', 'confirmDisable', array('user_id' => $user['id']), false, 'popover') ?>
  • - user->hasAccess('UserStatus', 'enable') && ! $this->user->isCurrentUser($user['id'])): ?> + user->hasAccess('UserStatusController', 'enable') && ! $this->user->isCurrentUser($user['id'])): ?>
  • - url->link(t('Enable'), 'UserStatus', 'confirmEnable', array('user_id' => $user['id']), false, 'popover') ?> + url->link(t('Enable'), 'UserStatusController', 'confirmEnable', array('user_id' => $user['id']), false, 'popover') ?>
  • - user->hasAccess('UserStatus', 'remove') && ! $this->user->isCurrentUser($user['id'])): ?> + user->hasAccess('UserStatusController', 'remove') && ! $this->user->isCurrentUser($user['id'])): ?>
  • - url->link(t('Remove'), 'UserStatus', 'confirmRemove', array('user_id' => $user['id']), false, 'popover') ?> + url->link(t('Remove'), 'UserStatusController', 'confirmRemove', array('user_id' => $user['id']), false, 'popover') ?>
  • - \ No newline at end of file + diff --git a/app/Template/user_status/disable.php b/app/Template/user_status/disable.php index 90d8c757..b551b3b8 100644 --- a/app/Template/user_status/disable.php +++ b/app/Template/user_status/disable.php @@ -6,7 +6,7 @@

    - url->link(t('Yes'), 'UserStatus', 'disable', array('user_id' => $user['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'UserStatusController', 'disable', array('user_id' => $user['id']), true, 'btn btn-red') ?> url->link(t('cancel'), 'user', 'index', array(), false, 'close-popover') ?>
    diff --git a/app/Template/user_status/enable.php b/app/Template/user_status/enable.php index cd3d4947..fe527047 100644 --- a/app/Template/user_status/enable.php +++ b/app/Template/user_status/enable.php @@ -6,7 +6,7 @@

    - url->link(t('Yes'), 'UserStatus', 'enable', array('user_id' => $user['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'UserStatusController', 'enable', array('user_id' => $user['id']), true, 'btn btn-red') ?> url->link(t('cancel'), 'user', 'index', array(), false, 'close-popover') ?>
    diff --git a/app/Template/user_status/remove.php b/app/Template/user_status/remove.php index cd5c09a6..c8458092 100644 --- a/app/Template/user_status/remove.php +++ b/app/Template/user_status/remove.php @@ -6,7 +6,7 @@

    - url->link(t('Yes'), 'UserStatus', 'remove', array('user_id' => $user['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'UserStatusController', 'remove', array('user_id' => $user['id']), true, 'btn btn-red') ?> url->link(t('cancel'), 'user', 'index', array(), false, 'close-popover') ?>
    -- cgit v1.2.3