Add more fields in bulk task creation form
This commit is contained in:
@@ -87,6 +87,11 @@ class TaskBulkController extends BaseController
|
|||||||
'color_id' => $values['color_id'],
|
'color_id' => $values['color_id'],
|
||||||
'project_id' => $project['id'],
|
'project_id' => $project['id'],
|
||||||
'description' => $this->getTaskDescription($project, $values),
|
'description' => $this->getTaskDescription($project, $values),
|
||||||
|
'tags' => $values['tags'],
|
||||||
|
'priority' => $values['priority'],
|
||||||
|
'score' => $values['score'],
|
||||||
|
'time_estimated' => $values['time_estimated'],
|
||||||
|
'date_due' => $values['date_due'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,10 +7,6 @@
|
|||||||
<?= $this->form->hidden('column_id', $values) ?>
|
<?= $this->form->hidden('column_id', $values) ?>
|
||||||
<?= $this->form->hidden('swimlane_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)): ?>
|
<?php if (! empty($task_description_templates)): ?>
|
||||||
<?= $this->form->label(t('Template for the task description'), 'task_description_template_id') ?>
|
<?= $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) ?>
|
<?= $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').'"')) ?>
|
<?= $this->form->textarea('tasks', $values, $errors, array('placeholder="'.t('My task title').'"')) ?>
|
||||||
<p class="form-help"><?= t('Enter one task by line.') ?></p>
|
<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() ?>
|
<?= $this->modal->submitButtons() ?>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user