diff options
author | Julian Maurice <julian.maurice@biblibre.com> | 2018-08-09 21:35:11 +0200 |
---|---|---|
committer | Julian Maurice <julian.maurice@biblibre.com> | 2018-08-11 10:15:13 +0200 |
commit | 9d4cd31e1aae02e9980932c67036fdfe574e3432 (patch) | |
tree | 6fca71d93aaed9032a0d771a0b8111d79fdc99b6 /app/Template/tag | |
parent | ae3ade0908bae350488260ee5d878a2ffbff605a (diff) |
Allow to associate tags to colors
The color is then used as background in the board, list and task details
views
Diffstat (limited to 'app/Template/tag')
-rw-r--r-- | app/Template/tag/create.php | 3 | ||||
-rw-r--r-- | app/Template/tag/edit.php | 3 |
2 files changed, 6 insertions, 0 deletions
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 @@ <?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + <?= $this->form->label(t('Color'), 'color_id') ?> + <?= $this->form->select('color_id', array('' => t('No color')) + $colors, $values, $errors, array(), 'color-picker') ?> + <?= $this->modal->submitButtons() ?> </form> 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 @@ <?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> + <?= $this->form->label(t('Color'), 'color_id') ?> + <?= $this->form->select('color_id', array('' => t('No color')) + $colors, $values, $errors, array(), 'color-picker') ?> + <?= $this->modal->submitButtons() ?> </form> |