summaryrefslogtreecommitdiff
path: root/app/Template/action
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-22 17:39:37 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-22 17:39:37 -0400
commitcd9bc86fbeea01fa492606b9c19ded36bf0ab366 (patch)
treecd7a9a5bca2e661107cdec11a2678fd68f8c9df4 /app/Template/action
parentfd60964c239627d2d55c6eca0888be84a8f6653f (diff)
Add new automated action to change task color based on the task link
Diffstat (limited to 'app/Template/action')
-rw-r--r--app/Template/action/index.php2
-rw-r--r--app/Template/action/params.php3
2 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/action/index.php b/app/Template/action/index.php
index 6898fc26..bf2f7475 100644
--- a/app/Template/action/index.php
+++ b/app/Template/action/index.php
@@ -42,6 +42,8 @@
<?= $this->text->in($param['value'], $colors_list) ?>
<?php elseif ($this->text->contains($param['name'], 'category_id')): ?>
<?= $this->text->in($param['value'], $categories_list) ?>
+ <?php elseif ($this->text->contains($param['name'], 'link_id')): ?>
+ <?= $this->text->in($param['value'], $links_list) ?>
<?php else: ?>
<?= $this->e($param['value']) ?>
<?php endif ?>
diff --git a/app/Template/action/params.php b/app/Template/action/params.php
index 759c5968..dcfaa9cc 100644
--- a/app/Template/action/params.php
+++ b/app/Template/action/params.php
@@ -28,6 +28,9 @@
<?php elseif ($this->text->contains($param_name, 'category_id')): ?>
<?= $this->form->label($param_desc, $param_name) ?>
<?= $this->form->select('params['.$param_name.']', $categories_list, $values) ?><br/>
+ <?php elseif ($this->text->contains($param_name, 'link_id')): ?>
+ <?= $this->form->label($param_desc, $param_name) ?>
+ <?= $this->form->select('params['.$param_name.']', $links_list, $values) ?><br/>
<?php else: ?>
<?= $this->form->label($param_desc, $param_name) ?>
<?= $this->form->text('params['.$param_name.']', $values) ?>