Allow to associate tags to colors
The color is then used as background in the board, list and task details views
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<div class="task-tags">
|
||||
<ul>
|
||||
<?php foreach ($task['tags'] as $tag): ?>
|
||||
<li><?= $this->text->e($tag['name']) ?></li>
|
||||
<li class="task-tag <?= $tag['color_id'] ? "color-{$tag['color_id']}" : '' ?>"><?= $this->text->e($tag['name']) ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -7,5 +7,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>
|
||||
|
||||
@@ -7,5 +7,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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
<div class="task-tags">
|
||||
<ul>
|
||||
<?php foreach ($tags as $tag): ?>
|
||||
<li><?= $this->text->e($tag) ?></li>
|
||||
<li class="task-tag <?= $tag['color_id'] ? "color-{$tag['color_id']}" : '' ?>"><?= $this->text->e($tag['name']) ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($task['tags'] as $tag): ?>
|
||||
<span class="table-list-category task-list-tag">
|
||||
<span class="table-list-category task-list-tag <?= $tag['color_id'] ? "color-{$tag['color_id']}" : '' ?>">
|
||||
<?= $this->text->e($tag['name']) ?>
|
||||
</span>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user