diff options
author | Olivier Maridat <olivier.maridat@trialog.com> | 2015-03-10 14:49:10 +0100 |
---|---|---|
committer | Olivier Maridat <olivier.maridat@trialog.com> | 2015-03-10 14:49:10 +0100 |
commit | 80fb1ce1e5bd864179fe456a68515b6df5de1cb6 (patch) | |
tree | 66258c462a6962ecc536c6ad39c0a1e2c56f078d /app/Template/tasklink/show.php | |
parent | ef1fea4509a8bd475c9d77ab63764378f1b5067b (diff) |
Add a quick task link creation as it is possible for subtask
Diffstat (limited to 'app/Template/tasklink/show.php')
-rw-r--r-- | app/Template/tasklink/show.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php index a36f89dd..75e3c376 100644 --- a/app/Template/tasklink/show.php +++ b/app/Template/tasklink/show.php @@ -41,4 +41,24 @@ </tr> <?php endforeach ?> </table> -<?php endif ?>
\ No newline at end of file + +<?php if (! isset($not_editable) && isset($link_label_list)): ?> + <form action="<?= $this->u('tasklink', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" method="post" autocomplete="off"> + + <?= $this->formCsrf() ?> + <?= $this->formHidden('task_id', array('task_id' => $task['id'])) ?> + <?= $this->formHidden('opposite_task_id', array()) ?> + + <?= $this->formSelect('link_id', $link_label_list, array(), array()) ?> + + <?= $this->formText( + 'title', + array(), + array(), + array('required', 'data-dst-field="opposite_task_id"', 'data-search-url="'.$this->u('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"'), + 'task-autocomplete') ?> + + <input type="submit" value="<?= t('Add') ?>" class="btn btn-blue"/> + </form> +<?php endif ?> +<?php endif ?> |