From ae3ade0908bae350488260ee5d878a2ffbff605a Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 9 Aug 2018 19:45:51 +0200 Subject: Allow to associate project categories to colors The color is then used as background in the board and list views --- app/Template/board/task_footer.php | 2 +- app/Template/category/create.php | 3 +++ app/Template/category/edit.php | 3 +++ app/Template/task_list/task_details.php | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'app/Template') diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 95ffd8fd..cdb75a1f 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -1,6 +1,6 @@
- + "> text->e($task['category_name']) ?> diff --git a/app/Template/category/create.php b/app/Template/category/create.php index f065305a..32501b8d 100644 --- a/app/Template/category/create.php +++ b/app/Template/category/create.php @@ -7,5 +7,8 @@ form->label(t('Category Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required')) ?> + form->label(t('Color'), 'color_id') ?> + form->select('color_id', array('' => t('No color')) + $colors, $values, $errors, array(), 'color-picker') ?> + modal->submitButtons() ?> diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php index cd8ee7ba..446ce7b5 100644 --- a/app/Template/category/edit.php +++ b/app/Template/category/edit.php @@ -11,5 +11,8 @@ form->label(t('Description'), 'description') ?> form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> + form->label(t('Color'), 'color_id') ?> + form->select('color_id', array('' => t('No color')) + $colors, $values, $errors, array(), 'color-picker') ?> + modal->submitButtons() ?> diff --git a/app/Template/task_list/task_details.php b/app/Template/task_list/task_details.php index b68be2dc..9afd9f55 100644 --- a/app/Template/task_list/task_details.php +++ b/app/Template/task_list/task_details.php @@ -4,7 +4,7 @@ text->e($task['column_name']) ?> - + "> user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> url->link( $this->text->e($task['category_name']), -- cgit v1.2.3