From d8e452d375493a70186866b876c0617bb3269e5f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 31 Jan 2016 11:50:28 -0500 Subject: Move task form elements to Task helper --- app/Controller/Gantt.php | 3 +-- app/Controller/Taskcreation.php | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php index ac0e6fad..f312130c 100644 --- a/app/Controller/Gantt.php +++ b/app/Controller/Gantt.php @@ -103,6 +103,7 @@ class Gantt extends Base $project = $this->getProject(); $this->response->html($this->template->render('gantt/task_creation', array( + 'project' => $project, 'errors' => $errors, 'values' => $values + array( 'project_id' => $project['id'], @@ -113,8 +114,6 @@ class Gantt extends Base 'colors_list' => $this->color->getList(), 'categories_list' => $this->category->getList($project['id']), 'swimlanes_list' => $this->swimlane->getList($project['id'], false, true), - 'date_format' => $this->config->get('application_date_format'), - 'date_formats' => $this->dateParser->getAvailableFormats(), 'title' => $project['name'].' > '.t('New task') ))); } diff --git a/app/Controller/Taskcreation.php b/app/Controller/Taskcreation.php index ed2ac1b9..396d5f6f 100644 --- a/app/Controller/Taskcreation.php +++ b/app/Controller/Taskcreation.php @@ -38,8 +38,6 @@ class Taskcreation extends Base 'colors_list' => $this->color->getList(), 'categories_list' => $this->category->getList($project['id']), 'swimlanes_list' => $swimlanes_list, - 'date_format' => $this->config->get('application_date_format'), - 'date_formats' => $this->dateParser->getAvailableFormats(), 'title' => $project['name'].' > '.t('New task') ))); } -- cgit v1.2.3