summaryrefslogtreecommitdiff
path: root/app/Template/task_bulk
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-03 10:57:00 -0700
committerFrederic Guillot <fred@kanboard.net>2017-11-03 10:57:00 -0700
commite6f8a76a188960512ced32133b85686d9a8d9090 (patch)
treea7d4ff84eb127a8d542244e276c4775886c88a85 /app/Template/task_bulk
parent78a2d3142c8da35ed072fdb035a2351594b128cc (diff)
Use task description templates in bulk task creation
Diffstat (limited to 'app/Template/task_bulk')
-rw-r--r--app/Template/task_bulk/show.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/task_bulk/show.php b/app/Template/task_bulk/show.php
index acf80d8c..b13cf239 100644
--- a/app/Template/task_bulk/show.php
+++ b/app/Template/task_bulk/show.php
@@ -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>