summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_subtasks.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task_list/task_subtasks.php')
-rw-r--r--app/Template/task_list/task_subtasks.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Template/task_list/task_subtasks.php b/app/Template/task_list/task_subtasks.php
new file mode 100644
index 00000000..716d6df2
--- /dev/null
+++ b/app/Template/task_list/task_subtasks.php
@@ -0,0 +1,22 @@
+<?php if (! empty($task['subtasks'])): ?>
+<div class="task-list-subtasks">
+ <?php foreach ($task['subtasks'] as $subtask): ?>
+ <div class="task-list-subtask">
+ <span class="subtask-cell column-50">
+ <?= $this->subtask->renderToggleStatus($task, $subtask) ?>
+ </span>
+ <span class="subtask-cell column-20 subtask-assignee">
+ <?php if (! empty($subtask['username'])): ?>
+ <?= $this->text->e($subtask['name'] ?: $subtask['username']) ?>
+ <?php endif ?>
+ </span>
+ <span class="subtask-cell subtask-time-tracking-cell">
+ <?= $this->render('subtask/timer', array(
+ 'task' => $task,
+ 'subtask' => $subtask,
+ )) ?>
+ </span>
+ </div>
+ <?php endforeach ?>
+</div>
+<?php endif ?>