diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-17 11:03:33 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-17 11:03:33 -0500 |
commit | d45fa6a33b8ce5258e4eab4c894765f885c16518 (patch) | |
tree | b9ef59892e83c4439f5a6024b8ab40160980c3b0 /app/Template/board/table_column.php | |
parent | 3c5762691827fae90d81ed05eee163da90140784 (diff) |
Add dropdown menu on each board column title to close all tasks
Diffstat (limited to 'app/Template/board/table_column.php')
-rw-r--r-- | app/Template/board/table_column.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 10bcfa08..b345c04e 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -24,8 +24,22 @@ </span> <?php endif ?> - <span class="board-column-title" data-column-id="<?= $column['id'] ?>" title="<?= t('Hide this column') ?>"> - <?= $this->e($column['title']) ?> + <span class="board-column-title"> + <span class="dropdown"> + <a href="#" class="dropdown-menu"><?= $this->e($column['title']) ?> <i class="fa fa-caret-down"></i></a> + <ul> + <li> + <i class="fa fa-minus-square fa-fw"></i> + <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a> + </li> + <?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?> + <li> + <i class="fa fa-close fa-fw"></i> + <?= $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> + </li> + <?php endif ?> + </ul> + </span> </span> <?php if (! $not_editable && ! empty($column['description'])): ?> |