diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 18:26:17 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 18:26:17 -0400 |
commit | f9c24f3c2c46eccd18e70704c0e8767fa6023206 (patch) | |
tree | 0e26337e3910ef10a88a8093967748ce54bcc701 /templates/task_sidebar.php | |
parent | 4d677b720e818f9d14585479699335ec41ed3541 (diff) |
Add the possibility to remove a task
Diffstat (limited to 'templates/task_sidebar.php')
-rw-r--r-- | templates/task_sidebar.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/task_sidebar.php b/templates/task_sidebar.php new file mode 100644 index 00000000..314d5214 --- /dev/null +++ b/templates/task_sidebar.php @@ -0,0 +1,17 @@ +<div class="task-show-sidebar"> + <h2><?= t('Actions') ?></h2> + <div class="task-show-actions"> + <ul> + <li><a href="?controller=task&action=duplicate&project_id=<?= $task['project_id'] ?>&task_id=<?= $task['id'] ?>"><?= t('Duplicate') ?></a></li> + <li><a href="?controller=task&action=edit&task_id=<?= $task['id'] ?>"><?= t('Edit') ?></a></li> + <li> + <?php if ($task['is_active'] == 1): ?> + <a href="?controller=task&action=confirmClose&task_id=<?= $task['id'] ?>"><?= t('Close this task') ?></a> + <?php else: ?> + <a href="?controller=task&action=confirmOpen&task_id=<?= $task['id'] ?>"><?= t('Open this task') ?></a> + <?php endif ?> + </li> + <li><a href="?controller=task&action=confirmRemove&task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li> + </ul> + </div> +</div>
\ No newline at end of file |