summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-06-08 11:12:24 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-06-08 11:12:24 -0700
commit0f8d994e432c2e2c6b26e0d6e026fd48c85148ea (patch)
tree6cb7be73761cadbe0c377ec894ea16f02d3c5a36
parent8b6cd866799ecd70f72f4b8ecea7d1bdd7d375ad (diff)
Add more fields in bulk task creation form
-rw-r--r--app/Controller/TaskBulkController.php5
-rw-r--r--app/Template/task_bulk/show.php13
2 files changed, 14 insertions, 4 deletions
diff --git a/app/Controller/TaskBulkController.php b/app/Controller/TaskBulkController.php
index 0f49fb76..072647e5 100644
--- a/app/Controller/TaskBulkController.php
+++ b/app/Controller/TaskBulkController.php
@@ -87,6 +87,11 @@ class TaskBulkController extends BaseController
'color_id' => $values['color_id'],
'project_id' => $project['id'],
'description' => $this->getTaskDescription($project, $values),
+ 'tags' => $values['tags'],
+ 'priority' => $values['priority'],
+ 'score' => $values['score'],
+ 'time_estimated' => $values['time_estimated'],
+ 'date_due' => $values['date_due'],
));
}
}
diff --git a/app/Template/task_bulk/show.php b/app/Template/task_bulk/show.php
index b13cf239..a52208f9 100644
--- a/app/Template/task_bulk/show.php
+++ b/app/Template/task_bulk/show.php
@@ -7,10 +7,6 @@
<?= $this->form->hidden('column_id', $values) ?>
<?= $this->form->hidden('swimlane_id', $values) ?>
- <?= $this->task->renderColorField($values) ?>
- <?= $this->task->renderAssigneeField($users_list, $values, $errors) ?>
- <?= $this->task->renderCategoryField($categories_list, $values, $errors) ?>
-
<?php if (! empty($task_description_templates)): ?>
<?= $this->form->label(t('Template for the task description'), 'task_description_template_id') ?>
<?= $this->form->select('task_description_template_id', $task_description_templates, $values, $errors) ?>
@@ -20,6 +16,15 @@
<?= $this->form->textarea('tasks', $values, $errors, array('placeholder="'.t('My task title').'"')) ?>
<p class="form-help"><?= t('Enter one task by line.') ?></p>
+ <?= $this->task->renderColorField($values) ?>
+ <?= $this->task->renderAssigneeField($users_list, $values, $errors) ?>
+ <?= $this->task->renderPriorityField($project, $values) ?>
+ <?= $this->task->renderDueDateField($values, $errors) ?>
+ <?= $this->task->renderTimeEstimatedField($values, $errors) ?>
+ <?= $this->task->renderScoreField($values, $errors) ?>
+ <?= $this->task->renderCategoryField($categories_list, $values, $errors) ?>
+ <?= $this->task->renderTagField($project) ?>
+
<?= $this->modal->submitButtons() ?>
</form>