From 364382b1b58db8bf1bd2c8866e21c869a7a5d6d0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 13 Feb 2015 17:50:20 -0500 Subject: Add task links (Merge pull-request #610) --- app/Template/tasklink/edit.php | 53 +++++++++++++++++++++++++++++++ app/Template/tasklink/remove.php | 17 ++++++++++ app/Template/tasklink/show.php | 68 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 app/Template/tasklink/edit.php create mode 100644 app/Template/tasklink/remove.php create mode 100644 app/Template/tasklink/show.php (limited to 'app/Template/tasklink') diff --git a/app/Template/tasklink/edit.php b/app/Template/tasklink/edit.php new file mode 100644 index 00000000..e1fcded2 --- /dev/null +++ b/app/Template/tasklink/edit.php @@ -0,0 +1,53 @@ + + + +
+ + formCsrf() ?> + + + formHidden('id', $values) ?> + formHidden('task_link_inverse_id', $values) ?> + + formHidden('task_id', $values) ?> + + # +   + formSelect('link_label_id', $link_list, $values, $errors, 'required autofocus') ?> +   + #formNumeric('task_inverse_id', $values, $errors, array('required', 'placeholder="'.t('Task id').'"', 'title="'.t('Linked task id').'"', 'list="task_inverse_ids"')) ?> + + + + + +
+ + + formCheckbox('another_link', t('Create another link'), 1, isset($values['another_link']) && $values['another_link'] == 1) ?> + + +
+ + + a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> +
+
+ +
+ + +
+ diff --git a/app/Template/tasklink/remove.php b/app/Template/tasklink/remove.php new file mode 100644 index 00000000..2ed87be7 --- /dev/null +++ b/app/Template/tasklink/remove.php @@ -0,0 +1,17 @@ + + +
+

+ +
+ +

+ +
+ a(t('Yes'), 'tasklink', 'remove', array('task_id' => $task['id'], 'link_id' => $link['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?> + + a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> +
+
\ No newline at end of file diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php new file mode 100644 index 00000000..ac49d070 --- /dev/null +++ b/app/Template/tasklink/show.php @@ -0,0 +1,68 @@ + + + -- cgit v1.2.3