resources added f1
This commit is contained in:
12
Template/board/column_dropdown.php
Normal file
12
Template/board/column_dropdown.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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 ?>
|
||||
17
Template/board/remove_column.php
Normal file
17
Template/board/remove_column.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Remove this column') ?></h2>
|
||||
</div>
|
||||
|
||||
<form method="post" action="<?= $this->url->href('ColumnController', 'remove', array('plugin' => 'OrganonTweaks', 'project_id' => $project['id'])) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('column_id', array('column_id' => $column_id)) ?>
|
||||
|
||||
<p class="alert alert-info">
|
||||
<?= t('Do you really want to remove this column: "%s"?', $column) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->modal->submitButtons(array(
|
||||
'submitLabel' => t('Remove'),
|
||||
'color' => 'red',
|
||||
)) ?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user