summaryrefslogtreecommitdiff
path: root/app/Templates/board_task.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-03 14:25:17 -0700
committerFrédéric Guillot <fred@kanboard.net>2014-09-03 14:25:17 -0700
commit749136361e6eedbc868778db17bdc67aa0f3b677 (patch)
tree78845b6f41fa69e4bc52c5e372689904ce8b5ac7 /app/Templates/board_task.php
parentd68ff648b1995c14506d4c61c9d97dc7f599496f (diff)
Change a category directly from the board
Diffstat (limited to 'app/Templates/board_task.php')
-rw-r--r--app/Templates/board_task.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/Templates/board_task.php b/app/Templates/board_task.php
index 4370558b..40590a65 100644
--- a/app/Templates/board_task.php
+++ b/app/Templates/board_task.php
@@ -23,11 +23,13 @@
<a class="task-edit-popover" href="?controller=task&amp;action=edit&amp;task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> -
<span class="task-board-user">
- <?php if (! empty($task['owner_id'])): ?>
- <a class="assignee-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>"><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></a>
- <?php else: ?>
- <a class="assignee-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>" class="task-board-nobody"><?= t('Nobody assigned') ?></a>
- <?php endif ?>
+ <a class="assignee-popover" href="?controller=board&amp;action=changeAssignee&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>">
+ <?php if (! empty($task['owner_id'])): ?>
+ <?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></a>
+ <?php else: ?>
+ <?= t('Nobody assigned') ?>
+ <?php endif ?>
+ </a>
</span>
<?php if ($task['score']): ?>
@@ -44,7 +46,9 @@
<?php if ($task['category_id']): ?>
<div class="task-board-category-container">
<span class="task-board-category">
- <?= Helper\in_list($task['category_id'], $categories) ?>
+ <a class="category-popover" href="?controller=board&amp;action=changeCategory&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change category') ?>">
+ <?= Helper\in_list($task['category_id'], $categories) ?>
+ </a>
</span>
</div>
<?php endif ?>