From 08bdb708e7698c21b0e6fc9f21d19996fc3d593d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 28 Aug 2016 22:30:48 -0400 Subject: Add the possibility to move tasks without drag and drop --- app/Template/task/sidebar.php | 16 ++++++++---- app/Template/task_move_position/show.php | 43 ++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 app/Template/task_move_position/show.php (limited to 'app/Template') diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index 728741ba..de0750ff 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -78,15 +78,21 @@ url->link(t('Move to another project'), 'TaskDuplicationController', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> -
  • - + +
  • + + url->link(t('Move position'), 'TaskMovePositionController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> +
  • +
  • url->link(t('Close this task'), 'TaskStatusController', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> - +
  • + +
  • url->link(t('Open this task'), 'TaskStatusController', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> - -
  • + + user->canRemoveTask($task)): ?>
  • diff --git a/app/Template/task_move_position/show.php b/app/Template/task_move_position/show.php new file mode 100644 index 00000000..29e1bcb1 --- /dev/null +++ b/app/Template/task_move_position/show.php @@ -0,0 +1,43 @@ + + + + + -- cgit v1.2.3