diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-12 14:28:08 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-12 14:28:08 -0400 |
commit | b7060b33ef317eeac576c504b1fb840d4471e411 (patch) | |
tree | 8acf657eda4df76285905fc5e774aacecb02f488 /app/Templates/task_table.php | |
parent | deeebd8e72a13fcbe6d357aefed9130671ee5161 (diff) |
Add pagination/column sorting for search and completed tasks
Diffstat (limited to 'app/Templates/task_table.php')
-rw-r--r-- | app/Templates/task_table.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/app/Templates/task_table.php b/app/Templates/task_table.php index d10d3f42..b6fdb2b9 100644 --- a/app/Templates/task_table.php +++ b/app/Templates/task_table.php @@ -1,14 +1,14 @@ <table> <tr> - <th><?= t('Id') ?></th> - <th><?= t('Column') ?></th> - <th><?= t('Category') ?></th> - <th><?= t('Title') ?></th> - <th><?= t('Assignee') ?></th> - <th><?= t('Due date') ?></th> - <th><?= t('Date created') ?></th> - <th><?= t('Date completed') ?></th> - <th><?= t('Status') ?></th> + <th><?= Helper\order(t('Id'), 'tasks.id', $pagination) ?></th> + <th><?= Helper\order(t('Column'), 'tasks.column_id', $pagination) ?></th> + <th><?= Helper\order(t('Category'), 'tasks.category_id', $pagination) ?></th> + <th><?= Helper\order(t('Title'), 'tasks.title', $pagination) ?></th> + <th><?= Helper\order(t('Assignee'), 'users.username', $pagination) ?></th> + <th><?= Helper\order(t('Due date'), 'tasks.date_due', $pagination) ?></th> + <th><?= Helper\order(t('Date created'), 'tasks.date_creation', $pagination) ?></th> + <th><?= Helper\order(t('Date completed'), 'tasks.date_completed', $pagination) ?></th> + <th><?= Helper\order(t('Status'), 'tasks.is_active', $pagination) ?></th> </tr> <?php foreach ($tasks as $task): ?> <tr> @@ -51,4 +51,6 @@ </td> </tr> <?php endforeach ?> -</table>
\ No newline at end of file +</table> + +<?= Helper\paginate($pagination) ?> |