diff options
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/board/table_column.php | 12 | ||||
-rw-r--r-- | app/Template/task_bulk/show.php | 27 |
2 files changed, 36 insertions, 3 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 24abdf99..e2f69036 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -35,11 +35,17 @@ <i class="fa fa-minus-square fa-fw"></i> <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a> </li> - <?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?> + <?php if ($this->user->hasProjectAccess('Taskcreation', 'create', $column['project_id'])): ?> <li> - <i class="fa fa-close fa-fw"></i> - <?= $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> + <i class="fa fa-align-justify" aria-hidden="true"></i> + <?= $this->url->link(t('Create tasks in bulk'), 'TaskBulk', 'show', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> </li> + <?php if ($column['nb_tasks'] > 0): ?> + <li> + <i class="fa fa-close fa-fw"></i> + <?= $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> + </li> + <?php endif ?> <?php endif ?> </ul> </span> diff --git a/app/Template/task_bulk/show.php b/app/Template/task_bulk/show.php new file mode 100644 index 00000000..dcd505f2 --- /dev/null +++ b/app/Template/task_bulk/show.php @@ -0,0 +1,27 @@ +<div class="page-header"> + <h2><?= t('Create tasks in bulk') ?></h2> +</div> + +<form class="popover-form" method="post" action="<?= $this->url->href('TaskBulk', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> + <?= $this->form->hidden('column_id', $values) ?> + <?= $this->form->hidden('swimlane_id', $values) ?> + <?= $this->form->hidden('project_id', $values) ?> + + <?= $this->task->selectAssignee($users_list, $values, $errors) ?> + <?= $this->task->selectCategory($categories_list, $values, $errors) ?> + + <?= $this->form->label(t('Tasks'), 'tasks') ?> + <?= $this->form->textarea('tasks', $values, $errors, array( + 'placeholder="'.implode("\r\n", array(t('My task title'), t('My task title'), t('My task title'))).'"') + ) ?> + <p class="form-help"><?= t('Enter one task by line.') ?></p> + + <?= $this->render('task/color_picker', array('colors_list' => $colors_list, 'values' => $values)) ?> + + <div class="form-actions"> + <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> + <?= t('or') ?> <?= $this->url->link(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?> + </div> +</form> + |