summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-03-19 16:45:32 -0400
committerFrederic Guillot <fred@kanboard.net>2017-03-19 16:45:32 -0400
commitd915c2a96b0cbb54b9949cc04495d156e1f89332 (patch)
tree93f31d3de295c0f6cfc7c3a3bdf20cb8d7e7922a /app/Template
parent5b7ed28ba1a47a5c4312017a86fb811e14c0285a (diff)
Improve subtask toggle
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/dashboard/show.php3
-rw-r--r--app/Template/subtask/table.php2
-rw-r--r--app/Template/task_list/task_subtasks.php2
3 files changed, 4 insertions, 3 deletions
diff --git a/app/Template/dashboard/show.php b/app/Template/dashboard/show.php
index df5b03e0..2cc78e3f 100644
--- a/app/Template/dashboard/show.php
+++ b/app/Template/dashboard/show.php
@@ -69,7 +69,8 @@
)) ?>
<?= $this->render('task_list/task_subtasks', array(
- 'task' => $task,
+ 'task' => $task,
+ 'user_id' => $user['id'],
)) ?>
</div>
<?php endforeach ?>
diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php
index 5488796d..e1bca500 100644
--- a/app/Template/subtask/table.php
+++ b/app/Template/subtask/table.php
@@ -21,7 +21,7 @@
'task' => $task,
'subtask' => $subtask,
)) ?>
- <?= $this->subtask->renderToggleStatus($task, $subtask, true) ?>
+ <?= $this->subtask->renderToggleStatus($task, $subtask, 'table') ?>
<?php else: ?>
<?= $this->subtask->renderTitle($subtask) ?>
<?php endif ?>
diff --git a/app/Template/task_list/task_subtasks.php b/app/Template/task_list/task_subtasks.php
index 716d6df2..9110b171 100644
--- a/app/Template/task_list/task_subtasks.php
+++ b/app/Template/task_list/task_subtasks.php
@@ -3,7 +3,7 @@
<?php foreach ($task['subtasks'] as $subtask): ?>
<div class="task-list-subtask">
<span class="subtask-cell column-50">
- <?= $this->subtask->renderToggleStatus($task, $subtask) ?>
+ <?= $this->subtask->renderToggleStatus($task, $subtask, 'rows', isset($user_id) ? $user_id : 0) ?>
</span>
<span class="subtask-cell column-20 subtask-assignee">
<?php if (! empty($subtask['username'])): ?>