From 9d4cd31e1aae02e9980932c67036fdfe574e3432 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 9 Aug 2018 21:35:11 +0200 Subject: Allow to associate tags to colors The color is then used as background in the board, list and task details views --- app/Template/board/task_footer.php | 2 +- app/Template/project_tag/create.php | 3 +++ app/Template/project_tag/edit.php | 3 +++ app/Template/tag/create.php | 3 +++ app/Template/tag/edit.php | 3 +++ app/Template/task/details.php | 2 +- app/Template/task_list/task_details.php | 2 +- 7 files changed, 15 insertions(+), 3 deletions(-) (limited to 'app/Template') diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index cdb75a1f..08af52a2 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -25,7 +25,7 @@
diff --git a/app/Template/project_tag/create.php b/app/Template/project_tag/create.php index d665aa76..61b6e670 100644 --- a/app/Template/project_tag/create.php +++ b/app/Template/project_tag/create.php @@ -7,5 +7,8 @@ form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + 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/project_tag/edit.php b/app/Template/project_tag/edit.php index 39b08326..0fab036b 100644 --- a/app/Template/project_tag/edit.php +++ b/app/Template/project_tag/edit.php @@ -7,5 +7,8 @@ form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + 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/tag/create.php b/app/Template/tag/create.php index c376eb28..f080f8d8 100644 --- a/app/Template/tag/create.php +++ b/app/Template/tag/create.php @@ -8,5 +8,8 @@ form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + 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/tag/edit.php b/app/Template/tag/edit.php index a0e54843..93ce0c94 100644 --- a/app/Template/tag/edit.php +++ b/app/Template/tag/edit.php @@ -9,5 +9,8 @@ form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + 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/details.php b/app/Template/task/details.php index 2712d49b..f3c6d896 100644 --- a/app/Template/task/details.php +++ b/app/Template/task/details.php @@ -156,7 +156,7 @@
diff --git a/app/Template/task_list/task_details.php b/app/Template/task_list/task_details.php index 9afd9f55..03e1d3eb 100644 --- a/app/Template/task_list/task_details.php +++ b/app/Template/task_list/task_details.php @@ -25,7 +25,7 @@ - + "> text->e($tag['name']) ?> -- cgit v1.2.3