Allow to associate project categories to colors

The color is then used as background in the board and list views
This commit is contained in:
Julian Maurice
2018-08-09 19:45:51 +02:00
parent efd64d842d
commit ae3ade0908
12 changed files with 33 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ class CategoryController extends BaseController
$this->response->html($this->template->render('category/create', array(
'values' => $values + array('project_id' => $project['id']),
'colors' => $this->colorModel->getList(),
'errors' => $errors,
'project' => $project,
)));
@@ -87,6 +88,7 @@ class CategoryController extends BaseController
$this->response->html($this->template->render('category/edit', array(
'values' => empty($values) ? $category : $values,
'colors' => $this->colorModel->getList(),
'errors' => $errors,
'project' => $project,
)));