Improve subtask toggle

This commit is contained in:
Frederic Guillot
2017-03-19 16:45:32 -04:00
parent 5b7ed28ba1
commit d915c2a96b
19 changed files with 165 additions and 664 deletions

View File

@@ -69,7 +69,8 @@
)) ?>
<?= $this->render('task_list/task_subtasks', array(
'task' => $task,
'task' => $task,
'user_id' => $user['id'],
)) ?>
</div>
<?php endforeach ?>

View File

@@ -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 ?>

View File

@@ -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'])): ?>