From 80fb1ce1e5bd864179fe456a68515b6df5de1cb6 Mon Sep 17 00:00:00 2001 From: Olivier Maridat Date: Tue, 10 Mar 2015 14:49:10 +0100 Subject: Add a quick task link creation as it is possible for subtask --- app/Template/tasklink/show.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'app/Template/tasklink') 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 @@ - \ No newline at end of file + + +
+ + formCsrf() ?> + formHidden('task_id', array('task_id' => $task['id'])) ?> + formHidden('opposite_task_id', array()) ?> + + formSelect('link_id', $link_label_list, array(), array()) ?> + + 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') ?> + + +
+ + -- cgit v1.2.3