summaryrefslogtreecommitdiff
path: root/app/Template/task
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-28 22:30:48 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-28 22:30:48 -0400
commit08bdb708e7698c21b0e6fc9f21d19996fc3d593d (patch)
treeb7ab229dfd1568bb9435e40b20c77aa783eefcc2 /app/Template/task
parentb51c693cda1cfbda115e315de58b15c0ef275972 (diff)
Add the possibility to move tasks without drag and drop
Diffstat (limited to 'app/Template/task')
-rw-r--r--app/Template/task/sidebar.php16
1 files changed, 11 insertions, 5 deletions
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 @@
<i class="fa fa-clone fa-fw"></i>
<?= $this->url->link(t('Move to another project'), 'TaskDuplicationController', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
</li>
- <li>
- <?php if ($task['is_active'] == 1): ?>
+ <?php if ($task['is_active'] == 1): ?>
+ <li>
+ <i class="fa fa-arrows fa-fw"></i>
+ <?= $this->url->link(t('Move position'), 'TaskMovePositionController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
+ </li>
+ <li>
<i class="fa fa-times fa-fw"></i>
<?= $this->url->link(t('Close this task'), 'TaskStatusController', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
- <?php else: ?>
+ </li>
+ <?php else: ?>
+ <li>
<i class="fa fa-check-square-o fa-fw"></i>
<?= $this->url->link(t('Open this task'), 'TaskStatusController', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
- <?php endif ?>
- </li>
+ </li>
+ <?php endif ?>
<?php if ($this->user->canRemoveTask($task)): ?>
<li>
<i class="fa fa-trash-o fa-fw"></i>