From 67b836164997527b91452b19adbcb8aa3c5decf1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 15 May 2016 18:31:47 -0400 Subject: Refactoring: added controlled middleware and changed response class --- app/Template/dashboard/tasks.php | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 app/Template/dashboard/tasks.php (limited to 'app/Template/dashboard/tasks.php') diff --git a/app/Template/dashboard/tasks.php b/app/Template/dashboard/tasks.php new file mode 100644 index 00000000..71b62572 --- /dev/null +++ b/app/Template/dashboard/tasks.php @@ -0,0 +1,49 @@ + +isEmpty()): ?> +

+ + + + + + + + + + + getCollection() as $task): ?> + + + + + + + + + +
order('Id', 'tasks.id') ?>order(t('Project'), 'project_name') ?>order(t('Task'), 'title') ?>order('Priority', 'tasks.priority') ?>order(t('Due date'), 'date_due') ?>
+ render('task/dropdown', array('task' => $task)) ?> + + url->link($this->text->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?> + + url->link($this->text->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + + = 0): ?> + Ptext->e($task['priority'])?> + + + + text->e($task['time_spent']).'h' ?> + + + + text->e($task['time_estimated']).'h' ?> + + + dt->date($task['date_due']) ?> +
+ + + -- cgit v1.2.3