From 648dc6bcfbdd44947ec58e2f3662c1cc3844d782 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 2 Nov 2017 15:41:58 -0700 Subject: Add predefined templates for task descriptions --- app/Helper/TaskHelper.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'app/Helper') diff --git a/app/Helper/TaskHelper.php b/app/Helper/TaskHelper.php index b105eaec..43347a6d 100644 --- a/app/Helper/TaskHelper.php +++ b/app/Helper/TaskHelper.php @@ -61,6 +61,30 @@ class TaskHelper extends Base return $this->helper->form->textEditor('description', $values, $errors, array('tabindex' => 2)); } + public function renderDescriptionTemplateDropdown($projectId) + { + $templates = $this->predefinedTaskDescriptionModel->getAll($projectId); + + if (! empty($templates)) { + $html = ''; + return $html; + } + + return ''; + } + public function renderTagField(array $project, array $tags = array()) { $options = $this->tagModel->getAssignableList($project['id']); -- cgit v1.2.3