diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-13 21:44:31 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-13 21:44:31 -0400 |
commit | 10f662ce07cdc0924cb6688fcb2d502e7aa21acc (patch) | |
tree | 33e58c1978e0b5908c97d786d7145d6dbc7e4a7b /app/Template/task_bulk/show.php | |
parent | a1a48b8374523fc19b3fb8596649baff0f3fa4a4 (diff) |
Add tasks in bulk from the board
Diffstat (limited to 'app/Template/task_bulk/show.php')
-rw-r--r-- | app/Template/task_bulk/show.php | 27 |
1 files changed, 27 insertions, 0 deletions
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> + |