From 0f8d994e432c2e2c6b26e0d6e026fd48c85148ea Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 8 Jun 2018 11:12:24 -0700 Subject: Add more fields in bulk task creation form --- app/Controller/TaskBulkController.php | 5 +++++ app/Template/task_bulk/show.php | 13 +++++++++---- 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 @@ form->hidden('column_id', $values) ?> form->hidden('swimlane_id', $values) ?> - task->renderColorField($values) ?> - task->renderAssigneeField($users_list, $values, $errors) ?> - task->renderCategoryField($categories_list, $values, $errors) ?> - form->label(t('Template for the task description'), 'task_description_template_id') ?> form->select('task_description_template_id', $task_description_templates, $values, $errors) ?> @@ -20,6 +16,15 @@ form->textarea('tasks', $values, $errors, array('placeholder="'.t('My task title').'"')) ?>

+ task->renderColorField($values) ?> + task->renderAssigneeField($users_list, $values, $errors) ?> + task->renderPriorityField($project, $values) ?> + task->renderDueDateField($values, $errors) ?> + task->renderTimeEstimatedField($values, $errors) ?> + task->renderScoreField($values, $errors) ?> + task->renderCategoryField($categories_list, $values, $errors) ?> + task->renderTagField($project) ?> + modal->submitButtons() ?> -- cgit v1.2.3