From 0f2b46dd6a9a1dc17768de2c415f382df95142e8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 4 Feb 2016 21:38:53 -0500 Subject: Do not refresh the whole page when changing subtask status (work in progress) --- app/Template/subtask/show.php | 77 ++----------------------------------------- 1 file changed, 2 insertions(+), 75 deletions(-) (limited to 'app/Template/subtask/show.php') diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index cf56a1de..b0326c48 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -2,82 +2,9 @@

-
+
- - - - - - - - - - - - - - - - - - - - - - - -
- - subtask->toggleStatus($subtask, $redirect) ?> - - render('subtask/icons', array('subtask' => $subtask)) . $this->e($subtask['title']) ?> - - - - - url->link($this->e($subtask['name'] ?: $subtask['username']), 'user', 'show', array('user_id' => $subtask['user_id'])) ?> - - e($subtask['name'] ?: $subtask['username']) ?> - - - -
    -
  • - - e($subtask['time_spent']).'h' ?> - - - - e($subtask['time_estimated']).'h' ?> - -
  • - user->getId()): ?> -
  • - - - url->link(t('Stop timer'), 'timer', 'subtask', array('timer' => 'stop', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'])) ?> - (dt->age($subtask['timer_start_date']) ?>) - - - url->link(t('Start timer'), 'timer', 'subtask', array('timer' => 'start', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'])) ?> - -
  • - -
-
- render('subtask/menu', array( - 'project' => $project, - 'task' => $task, - 'subtask' => $subtask, - 'redirect' => $redirect, - 'first_position' => $first_position, - 'last_position' => $last_position, - )) ?> -
- -

- + render('subtask/table', array('subtasks' => $subtasks, 'task' => $task, 'editable' => $editable)) ?> user->hasProjectAccess('subtask', 'save', $task['project_id'])): ?>
-- cgit v1.2.3