diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-01 18:57:07 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-01 18:57:07 -0500 |
commit | 7283692c1d565ec262546bdc816e8a5004df86ea (patch) | |
tree | 6ed15509134de3fda8d37895c4801695a2fa4307 /app/Template/board | |
parent | 695ed5701c4151dcab53fbdec1f21b0277cb7cf7 (diff) |
Add dropdown menu to the tasks
Diffstat (limited to 'app/Template/board')
-rw-r--r-- | app/Template/board/filters.php | 2 | ||||
-rw-r--r-- | app/Template/board/task.php | 16 |
2 files changed, 12 insertions, 6 deletions
diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php index 148f3de6..0e9c4d5f 100644 --- a/app/Template/board/filters.php +++ b/app/Template/board/filters.php @@ -30,6 +30,7 @@ <i class="fa fa-cog fa-fw"></i> <?= $this->a(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?> </li> + <?php endif ?> </ul> </li> </ul> @@ -45,6 +46,5 @@ <li> <a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a> </li> - <?php endif ?> </ul> </div>
\ No newline at end of file diff --git a/app/Template/board/task.php b/app/Template/board/task.php index 87eab885..546fbe1b 100644 --- a/app/Template/board/task.php +++ b/app/Template/board/task.php @@ -38,7 +38,17 @@ data-task-url="<?= $this->u('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" title="<?= t('View this task') ?>"> - <?= $this->a('#'.$task['id'], 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-edit-popover', t('Edit this task')) ?> + <ul class="dropdown"> + <li> + <a href="#" class="dropdown-menu"><?= '#'.$task['id'] ?></a> + <ul> + <li><i class="fa fa-user"></i> <?= $this->a(t('Change assignee'), 'board', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'assignee-popover') ?></li> + <li><i class="fa fa-tag"></i> <?= $this->a(t('Change category'), 'board', 'changeCategory', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'category-popover') ?></li> + <li><i class="fa fa-align-left"></i> <?= $this->a(t('Change description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-description-popover') ?></li> + <li><i class="fa fa-pencil-square-o"></i> <?= $this->a(t('Edit this task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-edit-popover') ?></li> + </li> + </li> + </ul> <?php if ($task['reference']): ?> <span class="task-board-reference" title="<?= t('Reference') ?>"> @@ -111,11 +121,7 @@ <?php if (! empty($task['description'])): ?> <span title="<?= t('Description') ?>" class="task-board-tooltip" data-href="<?= $this->u('board', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"> - <?php if (! isset($not_editable)): ?> - <a class="task-description-popover" href="?controller=task&action=description&task_id=<?= $task['id'] ?>"><i class="fa fa-file-text-o" data-href="?controller=task&action=description&task_id=<?= $task['id'] ?>"></i></a> - <?php else: ?> <i class="fa fa-file-text-o"></i> - <?php endif ?> </span> <?php endif ?> </div> |