add item to the dropdown menu

This commit is contained in:
2026-07-07 13:25:02 -03:00
parent c0464ddd95
commit 2cb5df8e1c
3 changed files with 69 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
<?php if ($column['nb_tasks'] > 0 && $this->user->hasProjectAccess('TaskModificationController', 'update', $column['project_id'])): ?>
<li>
<?= $this->modal->medium('arrows-h', t('Move all tasks to another column'), 'BulkMoveController', 'show', array(
<?php /* Rendered here (outside the menu <ul>) by the only available hook, then moved
into the column's real dropdown <ul> by Asset/js/relocate.js so it sits next
to the native entries. Hidden until relocated to avoid a flash in the header. */ ?>
<li class="bulkmovetasks-menu-item" style="display: none;">
<?= $this->modal->medium('arrows-h', t('Move tasks in bulk'), 'BulkMoveController', 'show', array(
'plugin' => 'BulkMoveTasks',
'project_id' => $column['project_id'],
'column_id' => $column['id'],