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/subtasks.php | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/Template/dashboard/subtasks.php (limited to 'app/Template/dashboard/subtasks.php') diff --git a/app/Template/dashboard/subtasks.php b/app/Template/dashboard/subtasks.php new file mode 100644 index 00000000..ee6caf02 --- /dev/null +++ b/app/Template/dashboard/subtasks.php @@ -0,0 +1,43 @@ + +isEmpty()): ?> +

+ + + + + + + + + + getCollection() as $subtask): ?> + + + + + + + + +
order('Id', 'tasks.id') ?>order(t('Project'), 'project_name') ?>order(t('Task'), 'task_name') ?>order(t('Subtask'), 'title') ?>
+ render('task/dropdown', array('task' => array('id' => $subtask['task_id'], 'project_id' => $subtask['project_id']))) ?> + + url->link($this->text->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?> + + url->link($this->text->e($subtask['task_name']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> + + subtask->toggleStatus($subtask, $subtask['project_id']) ?> + + + text->e($subtask['time_spent']).'h' ?> + + + + text->e($subtask['time_estimated']).'h' ?> + +
+ + + -- cgit v1.2.3