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

@@ -21,7 +21,7 @@ class Customfilter extends Base
{
$project = $this->getProject();
$this->response->html($this->projectLayout('custom_filter/index', array(
$this->response->html($this->helper->layout->project('custom_filter/index', array(
'values' => $values + array('project_id' => $project['id']),
'errors' => $errors,
'project' => $project,
@@ -90,7 +90,7 @@ class Customfilter extends Base
$this->checkPermission($project, $filter);
$this->response->html($this->projectLayout('custom_filter/edit', array(
$this->response->html($this->helper->layout->project('custom_filter/edit', array(
'values' => empty($values) ? $filter : $values,
'errors' => $errors,
'project' => $project,