summaryrefslogtreecommitdiff
path: root/app/Template/task/sidebar.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-03 21:59:48 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-03 21:59:48 -0500
commit9fb2e711899ae328a7a09295468793ffbc16c27c (patch)
tree1efba503386d939c61767f8fbbf006dcfdcd6a34 /app/Template/task/sidebar.php
parent8a02ceb40e88c27777a95251083bc21629d62bb0 (diff)
Move tasks templates to a subfolder
Diffstat (limited to 'app/Template/task/sidebar.php')
-rw-r--r--app/Template/task/sidebar.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php
new file mode 100644
index 00000000..25bddeab
--- /dev/null
+++ b/app/Template/task/sidebar.php
@@ -0,0 +1,44 @@
+<div class="sidebar">
+ <h2><?= t('Actions') ?></h2>
+ <ul>
+ <li>
+ <?= Helper\a(t('Summary'), 'task', 'show', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Edit the task'), 'task', 'edit', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Edit the description'), 'task', 'description', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Add a sub-task'), 'subtask', 'create', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Attach a document'), 'file', 'create', array('task_id' => $task['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Duplicate'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Duplicate to another project'), 'task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Move to another project'), 'task', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <li>
+ <?php if ($task['is_active'] == 1): ?>
+ <?= Helper\a(t('Close this task'), 'task', 'close', array('task_id' => $task['id'])) ?>
+ <?php else: ?>
+ <?= Helper\a(t('Open this task'), 'task', 'open', array('task_id' => $task['id'])) ?>
+ <?php endif ?>
+ </li>
+ <?php if (! $hide_remove_menu): ?>
+ <li>
+ <?= Helper\a(t('Remove'), 'task', 'remove', array('task_id' => $task['id'])) ?>
+ </li>
+ <?php endif ?>
+ </ul>
+</div> \ No newline at end of file