From e6f473f7aca1e37c44264baca6add1630daf8544 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Fri, 5 Mar 2021 10:26:13 -0700 Subject: [PATCH] Updated pagination --- Controller/GrouperGroupsController.php | 4 +- Lib/lang.php | 2 + View/Elements/pagination.ctp | 206 +++++++++++++------------ View/GrouperGroups/emaillistsoptin.ctp | 16 +- View/GrouperGroups/groupoptin.ctp | 7 +- webroot/css/co-grouper-plugin.css | 56 ++++++- 6 files changed, 177 insertions(+), 114 deletions(-) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 3f91687..b81bd38 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -44,8 +44,8 @@ class GrouperGroupsController extends GrouperLiteAppController //page navigation unless change record count and go back to lower number on Display record selection!! Sucks! public $paginate = array( //Default records per page. - 'limit' => 20, - 'maxlimit' => 60, + 'limit' => 2, + 'maxlimit' => 4, 'page' => 1 ); diff --git a/Lib/lang.php b/Lib/lang.php index b464443..9067788 100644 --- a/Lib/lang.php +++ b/Lib/lang.php @@ -84,4 +84,6 @@ 'pl.grouperlite.form.group.action.save' => 'Save Group', 'pl.grouperlite.search.tags.text' => 'Search', + + 'pl.grouperlite.pagination.counter' => 'Viewing {:start}-{:end} of {:count}' ); \ No newline at end of file diff --git a/View/Elements/pagination.ctp b/View/Elements/pagination.ctp index 2987efe..50b4069 100644 --- a/View/Elements/pagination.ctp +++ b/View/Elements/pagination.ctp @@ -1,4 +1,5 @@ - + ?> + + +
+ + +

+ + +
+ + \ No newline at end of file diff --git a/View/GrouperGroups/emaillistsoptin.ctp b/View/GrouperGroups/emaillistsoptin.ctp index 05075cc..2554c1d 100644 --- a/View/GrouperGroups/emaillistsoptin.ctp +++ b/View/GrouperGroups/emaillistsoptin.ctp @@ -15,13 +15,13 @@ Html->link( - isset($group['name']) ? $group['domain'].':'.$group['name'] : "No Name", - array( - 'controller' => 'groupergroups', - 'action' => 'emaillistinfo', - '?' => array('groupname' => urlencode($group['name'])) - ) - ) ?> + isset($group['name']) ? $group['domain'] . ':' . $group['name'] : "No Name", + array( + 'controller' => 'groupergroups', + 'action' => 'emaillistinfo', + '?' => array('groupname' => urlencode($group['name'])) + ) + ) ?>