20 lines
919 B
PHP
20 lines
919 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* "Mark all as Done/Todo" entry in the board column header dropdown. Like the "Remove this Column"
|
||
|
|
* item, the column hook renders outside the native menu <ul>, so this is hidden and moved into the
|
||
|
|
* menu by Asset/js/relocate.js. Shown only on non-empty columns to users who may modify tasks.
|
||
|
|
* Clicking opens a modal (DoneController::confirmColumn) that both confirms and picks the direction.
|
||
|
|
*/
|
||
|
|
if ($column['nb_tasks'] <= 0 || ! $this->user->hasProjectAccess('TaskModificationController', 'update', $column['project_id'])) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<li class="organontweaks-markall-item" style="display: none;">
|
||
|
|
<?= $this->modal->medium('check-square-o', t('Mark all as Done/Todo'), 'DoneController', 'confirmColumn', array(
|
||
|
|
'plugin' => 'OrganonTweaks',
|
||
|
|
'project_id' => $column['project_id'],
|
||
|
|
'column_id' => $column['id'],
|
||
|
|
'swimlane_id' => $swimlane['id'],
|
||
|
|
)) ?>
|
||
|
|
</li>
|