diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-03 20:53:07 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-03 20:53:07 -0500 |
commit | 346151e103431e8de12520b26daae10676b8faf5 (patch) | |
tree | bc74ec361007a2567d68372b3a16d57ff5aa560c /app/Template/subtask/menu.php | |
parent | 6d388ec48d04481883aeb08b3aa4cbb9063ce3a4 (diff) |
Add dropdown menu with inline popup for all task actions
Diffstat (limited to 'app/Template/subtask/menu.php')
-rw-r--r-- | app/Template/subtask/menu.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Template/subtask/menu.php b/app/Template/subtask/menu.php new file mode 100644 index 00000000..f14b09b2 --- /dev/null +++ b/app/Template/subtask/menu.php @@ -0,0 +1,21 @@ +<div class="dropdown"> + <a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a> + <ul> + <?php if ($subtask['position'] != $first_position): ?> + <li> + <?= $this->url->link(t('Move Up'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'up', 'redirect' => $redirect), true) ?> + </li> + <?php endif ?> + <?php if ($subtask['position'] != $last_position): ?> + <li> + <?= $this->url->link(t('Move Down'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'down', 'redirect' => $redirect), true) ?> + </li> + <?php endif ?> + <li> + <?= $this->url->link(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id']), false, 'popover') ?> + </li> + <li> + <?= $this->url->link(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id']), false, 'popover') ?> + </li> + </ul> +</div> |