diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-10 22:23:16 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-10 22:23:16 -0400 |
commit | 66c7cf0caa5802c825e3f511158bb719cf82cafa (patch) | |
tree | 0fcce70f7fc513c98f60e5f25564a56b5ba11b24 /templates | |
parent | 1cda8059b577d4025efa96377def082bf8f35f94 (diff) |
Add an automatic action to assign a color to a specific user
Diffstat (limited to 'templates')
-rw-r--r-- | templates/action_index.php | 2 | ||||
-rw-r--r-- | templates/action_params.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/action_index.php b/templates/action_index.php index 6e62949e..eccc0ec4 100644 --- a/templates/action_index.php +++ b/templates/action_index.php @@ -34,6 +34,8 @@ <?= Helper\in_list($param['value'], $users_list) ?> <?php elseif (Helper\contains($param['name'], 'project_id')): ?> <?= Helper\in_list($param['value'], $projects_list) ?> + <?php elseif (Helper\contains($param['name'], 'color_id')): ?> + <?= Helper\in_list($param['value'], $colors_list) ?> <?php endif ?> </strong> </li> diff --git a/templates/action_params.php b/templates/action_params.php index e7efcda5..ed9d8b8f 100644 --- a/templates/action_params.php +++ b/templates/action_params.php @@ -25,8 +25,10 @@ <?php elseif (Helper\contains($param_name, 'project_id')): ?> <?= Helper\form_label($param_desc, $param_name) ?> <?= Helper\form_select('params['.$param_name.']', $projects_list, $values) ?><br/> + <?php elseif (Helper\contains($param_name, 'color_id')): ?> + <?= Helper\form_label($param_desc, $param_name) ?> + <?= Helper\form_select('params['.$param_name.']', $colors_list, $values) ?><br/> <?php endif ?> - <?php endforeach ?> <div class="form-actions"> |