From 7c1c14cf64b59f211b9d505112797cb855e5b604 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 18 Jan 2015 17:59:41 -0500 Subject: Pagination refactoring --- app/Template/task/table.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/Template/task/table.php') diff --git a/app/Template/task/table.php b/app/Template/task/table.php index e8ca7c51..4ccf83b9 100644 --- a/app/Template/task/table.php +++ b/app/Template/task/table.php @@ -1,16 +1,16 @@ - - - - - - - - - + + + + + + + + + - + getCollection() as $task): ?>
order(t('Id'), 'tasks.id', $pagination) ?>order(t('Column'), 'tasks.column_id', $pagination) ?>order(t('Category'), 'tasks.category_id', $pagination) ?>order(t('Title'), 'tasks.title', $pagination) ?>order(t('Assignee'), 'users.username', $pagination) ?>order(t('Due date'), 'tasks.date_due', $pagination) ?>order(t('Date created'), 'tasks.date_creation', $pagination) ?>order(t('Date completed'), 'tasks.date_completed', $pagination) ?>order(t('Status'), 'tasks.is_active', $pagination) ?>order(t('Id'), 'tasks.id') ?>order(t('Column'), 'tasks.column_id') ?>order(t('Category'), 'tasks.category_id') ?>order(t('Title'), 'tasks.title') ?>order(t('Assignee'), 'users.username') ?>order(t('Due date'), 'tasks.date_due') ?>order(t('Date created'), 'tasks.date_creation') ?>order(t('Date completed'), 'tasks.date_completed') ?>order(t('Status'), 'tasks.is_active') ?>
a('#'.$this->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> @@ -53,4 +53,4 @@
-paginate($pagination) ?> + -- cgit v1.2.3