From 73bae9bb3425089babea5f2effe172e5a0938e2b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 18 Mar 2016 21:16:25 -0400 Subject: Rename controller TaskLink to TaskInternalLink --- app/Template/tasklink/create.php | 33 ---------------- app/Template/tasklink/edit.php | 34 ---------------- app/Template/tasklink/remove.php | 15 ------- app/Template/tasklink/show.php | 14 ------- app/Template/tasklink/table.php | 85 ---------------------------------------- 5 files changed, 181 deletions(-) delete mode 100644 app/Template/tasklink/create.php delete mode 100644 app/Template/tasklink/edit.php delete mode 100644 app/Template/tasklink/remove.php delete mode 100644 app/Template/tasklink/show.php delete mode 100644 app/Template/tasklink/table.php (limited to 'app/Template/tasklink') diff --git a/app/Template/tasklink/create.php b/app/Template/tasklink/create.php deleted file mode 100644 index 02d38a9b..00000000 --- a/app/Template/tasklink/create.php +++ /dev/null @@ -1,33 +0,0 @@ - - -
- - form->csrf() ?> - form->hidden('task_id', array('task_id' => $task['id'])) ?> - form->hidden('opposite_task_id', $values) ?> - - form->label(t('Label'), 'link_id') ?> - form->select('link_id', $labels, $values, $errors) ?> - - form->label(t('Task'), 'title') ?> - form->text( - 'title', - $values, - $errors, - array( - 'required', - 'placeholder="'.t('Start to type task title...').'"', - 'title="'.t('Start to type task title...').'"', - 'data-dst-field="opposite_task_id"', - 'data-search-url="'.$this->url->href('TaskHelper', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', - ), - 'autocomplete') ?> - -
- - - url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> -
-
\ No newline at end of file diff --git a/app/Template/tasklink/edit.php b/app/Template/tasklink/edit.php deleted file mode 100644 index b174c348..00000000 --- a/app/Template/tasklink/edit.php +++ /dev/null @@ -1,34 +0,0 @@ - - -
- - form->csrf() ?> - form->hidden('id', $values) ?> - form->hidden('task_id', $values) ?> - form->hidden('opposite_task_id', $values) ?> - - form->label(t('Label'), 'link_id') ?> - form->select('link_id', $labels, $values, $errors) ?> - - form->label(t('Task'), 'title') ?> - form->text( - 'title', - $values, - $errors, - array( - 'required', - 'placeholder="'.t('Start to type task title...').'"', - 'title="'.t('Start to type task title...').'"', - 'data-dst-field="opposite_task_id"', - 'data-search-url="'.$this->url->href('TaskHelper', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', - ), - 'autocomplete') ?> - -
- - - url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> -
-
\ No newline at end of file diff --git a/app/Template/tasklink/remove.php b/app/Template/tasklink/remove.php deleted file mode 100644 index 42bf3012..00000000 --- a/app/Template/tasklink/remove.php +++ /dev/null @@ -1,15 +0,0 @@ - - -
-

- -

- -
- url->link(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?> - - url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> -
-
\ No newline at end of file diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php deleted file mode 100644 index 9f718fc9..00000000 --- a/app/Template/tasklink/show.php +++ /dev/null @@ -1,14 +0,0 @@ -
-
-

-
-
- render('tasklink/table', array( - 'links' => $links, - 'task' => $task, - 'project' => $project, - 'editable' => $editable, - 'is_public' => $is_public, - )) ?> -
-
diff --git a/app/Template/tasklink/table.php b/app/Template/tasklink/table.php deleted file mode 100644 index df7bc4f5..00000000 --- a/app/Template/tasklink/table.php +++ /dev/null @@ -1,85 +0,0 @@ - - - $grouped_links): ?> - - - - - - - - - - - - - - - - - - - - user->hasProjectAccess('Tasklink', 'edit', $task['project_id'])): ?> - - - - - - - \ No newline at end of file -- cgit v1.2.3