13 lines
791 B
PHP
13 lines
791 B
PHP
|
|
<?php if ($this->user->hasProjectAccess('ColumnController', 'remove', $column['project_id']) && $this->OrganonColumnHelper->hasNoTasks($column['project_id'], $column['id'])): ?>
|
||
|
|
<?php /* Rendered outside the menu <ul> by the only column hook, then moved into it by
|
||
|
|
Asset/js/relocate.js. Hidden until relocated so it never flashes in the header.
|
||
|
|
Shown only for empty columns (no open or closed tasks). */ ?>
|
||
|
|
<li class="organontweaks-remove-column-item" style="display: none;">
|
||
|
|
<?= $this->modal->confirm('trash-o', t('Remove this Column'), 'ColumnController', 'confirm', array(
|
||
|
|
'plugin' => 'OrganonTweaks',
|
||
|
|
'project_id' => $column['project_id'],
|
||
|
|
'column_id' => $column['id'],
|
||
|
|
)) ?>
|
||
|
|
</li>
|
||
|
|
<?php endif ?>
|