diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-18 17:59:41 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-18 17:59:41 -0500 |
commit | 7c1c14cf64b59f211b9d505112797cb855e5b604 (patch) | |
tree | 79622c17096b386ca599c3f804a9d6d5513a8d7d /app/Template/task/table.php | |
parent | 74e4a7b0642b18d9aaa71dd72359495c5dc99107 (diff) |
Pagination refactoring
Diffstat (limited to 'app/Template/task/table.php')
-rw-r--r-- | app/Template/task/table.php | 22 |
1 files changed, 11 insertions, 11 deletions
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 @@ <table class="table-fixed table-small"> <tr> - <th class="column-8"><?= $this->order(t('Id'), 'tasks.id', $pagination) ?></th> - <th class="column-8"><?= $this->order(t('Column'), 'tasks.column_id', $pagination) ?></th> - <th class="column-8"><?= $this->order(t('Category'), 'tasks.category_id', $pagination) ?></th> - <th><?= $this->order(t('Title'), 'tasks.title', $pagination) ?></th> - <th class="column-10"><?= $this->order(t('Assignee'), 'users.username', $pagination) ?></th> - <th class="column-10"><?= $this->order(t('Due date'), 'tasks.date_due', $pagination) ?></th> - <th class="column-10"><?= $this->order(t('Date created'), 'tasks.date_creation', $pagination) ?></th> - <th class="column-10"><?= $this->order(t('Date completed'), 'tasks.date_completed', $pagination) ?></th> - <th class="column-5"><?= $this->order(t('Status'), 'tasks.is_active', $pagination) ?></th> + <th class="column-8"><?= $paginator->order(t('Id'), 'tasks.id') ?></th> + <th class="column-8"><?= $paginator->order(t('Column'), 'tasks.column_id') ?></th> + <th class="column-8"><?= $paginator->order(t('Category'), 'tasks.category_id') ?></th> + <th><?= $paginator->order(t('Title'), 'tasks.title') ?></th> + <th class="column-10"><?= $paginator->order(t('Assignee'), 'users.username') ?></th> + <th class="column-10"><?= $paginator->order(t('Due date'), 'tasks.date_due') ?></th> + <th class="column-10"><?= $paginator->order(t('Date created'), 'tasks.date_creation') ?></th> + <th class="column-10"><?= $paginator->order(t('Date completed'), 'tasks.date_completed') ?></th> + <th class="column-5"><?= $paginator->order(t('Status'), 'tasks.is_active') ?></th> </tr> - <?php foreach ($tasks as $task): ?> + <?php foreach ($paginator->getCollection() as $task): ?> <tr> <td class="task-table color-<?= $task['color_id'] ?>"> <?= $this->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 @@ <?php endforeach ?> </table> -<?= $this->paginate($pagination) ?> +<?= $paginator ?> |