36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* The "Mark all as Done/Todo" modal: one modal serving both purposes -- confirm and pick direction.
|
|
* Two buttons set every task in the column to the same state; cancel closes the modal. Each button is
|
|
* a CSRF link to DoneController::markColumn.
|
|
*/
|
|
?>
|
|
<div class="page-header">
|
|
<h2><?= t('Mark all tasks in this column') ?></h2>
|
|
</div>
|
|
|
|
<p class="confirm">
|
|
<?= t('Set every task in this column to the same state. Already-done tasks are overwritten (no harm).') ?>
|
|
</p>
|
|
|
|
<div class="form-actions">
|
|
<?= $this->url->link(t('Mark all Done'), 'DoneController', 'markColumn', array(
|
|
'plugin' => 'OrganonTweaks',
|
|
'project_id' => $project_id,
|
|
'column_id' => $column_id,
|
|
'swimlane_id' => $swimlane_id,
|
|
'direction' => 'done',
|
|
), true, 'btn btn-blue') ?>
|
|
|
|
<?= $this->url->link(t('Mark all Todo'), 'DoneController', 'markColumn', array(
|
|
'plugin' => 'OrganonTweaks',
|
|
'project_id' => $project_id,
|
|
'column_id' => $column_id,
|
|
'swimlane_id' => $swimlane_id,
|
|
'direction' => 'todo',
|
|
), true, 'btn btn-red') ?>
|
|
|
|
<?= t('or') ?>
|
|
<?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $project_id), false, 'close-popover') ?>
|
|
</div>
|