Simplify layout and templates generation

This commit is contained in:
Frederic Guillot
2016-01-31 21:44:49 -05:00
parent 271543431e
commit 26492aba7e
51 changed files with 282 additions and 320 deletions

View File

@@ -56,7 +56,7 @@ class Taskmodification extends Base
$values = array('id' => $task['id'], 'description' => $task['description']);
}
$this->response->html($this->taskLayout('task_modification/edit_description', array(
$this->response->html($this->helper->layout->task('task_modification/edit_description', array(
'values' => $values,
'errors' => $errors,
'task' => $task,
@@ -104,7 +104,7 @@ class Taskmodification extends Base
$this->dateParser->format($values, array('date_due'));
$this->response->html($this->taskLayout('task_modification/edit_task', array(
$this->response->html($this->helper->layout->task('task_modification/edit_task', array(
'project' => $project,
'values' => $values,
'errors' => $errors,
@@ -176,6 +176,6 @@ class Taskmodification extends Base
'recurrence_basedate_list' => $this->task->getRecurrenceBasedateList(),
);
$this->response->html($this->taskLayout('task_modification/edit_recurrence', $params));
$this->response->html($this->helper->layout->task('task_modification/edit_recurrence', $params));
}
}