diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-06-01 15:58:17 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-06-01 15:58:17 -0700 |
commit | 912cf378d730b3df8d285ba765711d9c456bdea0 (patch) | |
tree | cc26710f2e1e4e9eb958b873a2fb537cf3a389cb /app/Template/task_list/header.php | |
parent | cd6da138973f6bfe7c71846ff6cc1d6fb97c4813 (diff) |
Add checkboxes in list view to move tasks to another column at once
Diffstat (limited to 'app/Template/task_list/header.php')
-rw-r--r-- | app/Template/task_list/header.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/Template/task_list/header.php b/app/Template/task_list/header.php index 7704e2df..599286aa 100644 --- a/app/Template/task_list/header.php +++ b/app/Template/task_list/header.php @@ -6,6 +6,24 @@ <?= t('%d task', $paginator->getTotal()) ?> <?php endif ?> </div> + <?php if (isset($show_items_selection)): ?> + <?php if ($this->user->hasProjectAccess('TaskModificationController', 'save', $project['id'])): ?> + <div class="list-item-links"> + <a href="#" data-list-item-selection="all"><?= t('Select All') ?></a> / <a href="#" data-list-item-selection="none"><?= t('Unselect All') ?></a> + </div> + <div class="list-item-actions list-item-action-hidden"> + - + <div class="dropdown"> + <a href="#" class="dropdown-menu dropdown-menu-link-icon"><strong><?= t('Apply action') ?> <i class="fa fa-caret-down"></i></strong></a> + <ul> + <li> + <a href="<?= $this->url->href('TaskBulkMoveColumnController', 'show', ['project_id' => $project['id']]) ?>" data-list-item-action="modal"><?= t('Move selected tasks to another column') ?></a> + </li> + </ul> + </div> + </div> + <?php endif ?> + <?php endif ?> <div class="table-list-header-menu"> <?php if (isset($project)): ?> <?php if ($this->user->hasSubtaskListActivated()): ?> |