From 5c92f467867b43034b9e66b46b3b465ba9db655c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 30 Jan 2016 20:38:20 -0500 Subject: Add external links for tasks with plugin api --- app/Template/task_external_link/form.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/Template/task_external_link/form.php (limited to 'app/Template/task_external_link/form.php') diff --git a/app/Template/task_external_link/form.php b/app/Template/task_external_link/form.php new file mode 100644 index 00000000..932ca521 --- /dev/null +++ b/app/Template/task_external_link/form.php @@ -0,0 +1,13 @@ +form->csrf() ?> +form->hidden('task_id', array('task_id' => $task['id'])) ?> +form->hidden('id', $values) ?> +form->hidden('link_type', $values) ?> + +form->label(t('URL'), 'url') ?> +form->text('url', $values, $errors, array('required')) ?> + +form->label(t('Title'), 'title') ?> +form->text('title', $values, $errors, array('required')) ?> + +form->label(t('Dependency'), 'dependency') ?> +form->select('dependency', $dependencies, $values, $errors) ?> -- cgit v1.2.3