diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-31 11:50:28 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-31 11:50:28 -0500 |
commit | d8e452d375493a70186866b876c0617bb3269e5f (patch) | |
tree | bee3adfefbc89dc0b085e897ef4c492182de61a5 /app/Controller | |
parent | 9570793f68d44179f9b7e0b264e5fbe0ca839c51 (diff) |
Move task form elements to Task helper
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Gantt.php | 3 | ||||
-rw-r--r-- | app/Controller/Taskcreation.php | 2 |
2 files changed, 1 insertions, 4 deletions
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') ))); } |