Use task description templates in bulk task creation

This commit is contained in:
Frederic Guillot
2017-11-03 10:57:00 -07:00
parent 78a2d3142c
commit e6f8a76a18
32 changed files with 54 additions and 2 deletions

View File

@@ -6,12 +6,16 @@
<?= $this->form->csrf() ?>
<?= $this->form->hidden('column_id', $values) ?>
<?= $this->form->hidden('swimlane_id', $values) ?>
<?= $this->form->hidden('project_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) ?>
<?php endif ?>
<?= $this->form->label(t('Tasks'), 'tasks') ?>
<?= $this->form->textarea('tasks', $values, $errors, array('placeholder="'.t('My task title').'"')) ?>
<p class="form-help"><?= t('Enter one task by line.') ?></p>