Template added

This commit is contained in:
2026-06-28 17:30:19 -03:00
parent 63d5918c34
commit 4c4f4157d3
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?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(
'plugin' => 'BulkMoveTasks',
'project_id' => $column['project_id'],
'column_id' => $column['id'],
'swimlane_id' => $swimlane['id'],
)) ?>
</li>
<?php endif ?>

View File

@@ -0,0 +1,20 @@
<div class="page-header">
<h2><?= t('Move all tasks to another column') ?></h2>
</div>
<form method="post" action="<?= $this->url->href('BulkMoveController', 'move', array('plugin' => 'BulkMoveTasks', 'project_id' => $project['id'])) ?>">
<?= $this->form->csrf() ?>
<?= $this->form->hidden('column_id', $values) ?>
<?= $this->form->hidden('swimlane_id', $values) ?>
<p class="alert">
<?= t('%d task(s) from the column "%s" (swimlane "%s") will be moved.', $nb_tasks, $column, $swimlane) ?>
</p>
<?= $this->form->label(t('Destination column'), 'dst_column_id') ?>
<?= $this->form->select('dst_column_id', $columns_list) ?>
<?= $this->modal->submitButtons(array(
'submitLabel' => t('Move'),
)) ?>
</form>