diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-13 21:44:31 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-13 21:44:31 -0400 |
commit | 10f662ce07cdc0924cb6688fcb2d502e7aa21acc (patch) | |
tree | 33e58c1978e0b5908c97d786d7145d6dbc7e4a7b /app/Template/board/table_column.php | |
parent | a1a48b8374523fc19b3fb8596649baff0f3fa4a4 (diff) |
Add tasks in bulk from the board
Diffstat (limited to 'app/Template/board/table_column.php')
-rw-r--r-- | app/Template/board/table_column.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 24abdf99..e2f69036 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -35,11 +35,17 @@ <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): ?> + <?php if ($this->user->hasProjectAccess('Taskcreation', 'create', $column['project_id'])): ?> <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') ?> + <i class="fa fa-align-justify" aria-hidden="true"></i> + <?= $this->url->link(t('Create tasks in bulk'), 'TaskBulk', 'show', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> </li> + <?php if ($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 ?> <?php endif ?> </ul> </span> |