summaryrefslogtreecommitdiff
path: root/app/Template/category
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/category')
-rw-r--r--app/Template/category/create.php3
-rw-r--r--app/Template/category/edit.php3
2 files changed, 6 insertions, 0 deletions
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 @@
<?= $this->form->label(t('Category Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
+ <?= $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/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 @@
<?= $this->form->label(t('Description'), 'description') ?>
<?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?>
+ <?= $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>