diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-01 18:03:58 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-01 18:03:58 -0500 |
commit | 35d99ec5d3e5d18e83537c68831be02d40f36d8e (patch) | |
tree | 35a86751ad752be286c9e908211dacfc5d174e59 /app/Template/subtask/show.php | |
parent | da425e4187e5e8e7feb9783c9d75bcaa9fa0c7ec (diff) |
Add subtask position
Diffstat (limited to 'app/Template/subtask/show.php')
-rw-r--r-- | app/Template/subtask/show.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index 1d55d1ee..c7ac652a 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -20,7 +20,7 @@ <?php if (! isset($not_editable)): ?> <?= $this->toggleSubtaskStatus($subtask, 'task') ?> <?php else: ?> - <?= $this->render('subtask/icons', array('subtask' => $subtask)) . $this->e($subtask['status_name']) ?> + <?= $this->render('subtask/icons', array('subtask' => $subtask)) . $this->e($subtask['title']) ?> <?php endif ?> </td> <td> @@ -40,6 +40,16 @@ <?php if (! isset($not_editable)): ?> <td> <ul> + <?php if ($subtask['position'] > 1): ?> + <li> + <?= $this->a(t('Move Up'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'up'), true) ?> + </li> + <?php endif ?> + <?php if ($subtask['position'] != 0 && $subtask['position'] != count($subtasks)): ?> + <li> + <?= $this->a(t('Move Down'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'down'), true) ?> + </li> + <?php endif ?> <li> <?= $this->a(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?> </li> |