Show the task creation form as a popover

This commit is contained in:
Frédéric Guillot
2014-11-25 20:49:26 -05:00
parent d89fed4e25
commit 5de091ea28
4 changed files with 5 additions and 2 deletions

View File

@@ -89,8 +89,9 @@ class Task extends Base
public function create()
{
$project = $this->getProject();
$method = $this->request->isAjax() ? 'load' : 'layout';
$this->response->html($this->template->layout('task_new', array(
$this->response->html($this->template->$method('task_new', array(
'errors' => array(),
'values' => array(
'project_id' => $project['id'],