diff --git a/ChangeLog b/ChangeLog
index 898d2b006..be44bc3fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ New features:
Improvements:
+* Added more template hooks
* Added tasks search with the API
* Added priority field to API procedures
* Added API procedure "getMemberGroups"
diff --git a/app/Template/task/details.php b/app/Template/task/details.php
index 141c4a0bc..5b8b7c6da 100644
--- a/app/Template/task/details.php
+++ b/app/Template/task/details.php
@@ -1,6 +1,8 @@
= $this->text->e($task['title']) ?>
+ = $this->hook->render('template:task:details:top', array('task' => $task)) ?>
+
@@ -149,4 +151,6 @@
= $this->url->button('fa-play', t('Set start date'), 'taskmodification', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+
+ = $this->hook->render('template:task:details:bottom', array('task' => $task)) ?>
diff --git a/app/Template/task/dropdown.php b/app/Template/task/dropdown.php
index f98f51728..6fea3728a 100644
--- a/app/Template/task/dropdown.php
+++ b/app/Template/task/dropdown.php
@@ -55,6 +55,6 @@
- = $this->hook->render('template:task:dropdown') ?>
+ = $this->hook->render('template:task:dropdown', array('task' => $task)) ?>
diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php
index 52db5d1b4..ba2cd8d54 100644
--- a/app/Template/task/layout.php
+++ b/app/Template/task/layout.php
@@ -1,5 +1,6 @@
= $this->projectHeader->render($project, 'Listing', 'show') ?>
+ = $this->hook->render('template:task:layout:top', array('task' => $task)) ?>
-
\ No newline at end of file
+
diff --git a/app/Template/task/show.php b/app/Template/task/show.php
index 864229418..8f41d6535 100644
--- a/app/Template/task/show.php
+++ b/app/Template/task/show.php
@@ -34,7 +34,7 @@
'project' => $project,
)) ?>
-= $this->hook->render('template:task:show:before-attachements', array('task' => $task, 'project' => $project)) ?>
+= $this->hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?>
= $this->render('task_file/show', array(
'task' => $task,
'files' => $files,
diff --git a/app/Template/task_creation/form.php b/app/Template/task_creation/form.php
index 9bfd839fb..c963bdcff 100644
--- a/app/Template/task_creation/form.php
+++ b/app/Template/task_creation/form.php
@@ -29,7 +29,7 @@
= $this->form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?>
- = $this->hook->render('template:task:form:left-column', array('values'=>$values, 'errors'=>$errors)) ?>
+ = $this->hook->render('template:task:form:left-column', array('values' => $values, 'errors' => $errors)) ?>
@@ -43,7 +43,7 @@
= $this->task->selectTimeEstimated($values, $errors) ?>
= $this->task->selectDueDate($values, $errors) ?>
- = $this->hook->render('template:task:form:right-column', array('values'=>$values, 'errors'=>$errors)) ?>
+ = $this->hook->render('template:task:form:right-column', array('values' => $values, 'errors' => $errors)) ?>
diff --git a/app/Template/task_modification/edit_task.php b/app/Template/task_modification/edit_task.php
index b5891c152..5ddec5ea4 100644
--- a/app/Template/task_modification/edit_task.php
+++ b/app/Template/task_modification/edit_task.php
@@ -14,6 +14,8 @@
= $this->task->selectCategory($categories_list, $values, $errors) ?>
= $this->task->selectPriority($project, $values) ?>
= $this->task->selectScore($values, $errors) ?>
+
+ = $this->hook->render('template:task:form:left-column', array('values' => $values, 'errors' => $errors)) ?>
@@ -21,6 +23,8 @@
= $this->task->selectTimeSpent($values, $errors) ?>
= $this->task->selectStartDate($values, $errors) ?>
= $this->task->selectDueDate($values, $errors) ?>
+
+ = $this->hook->render('template:task:form:right-column', array('values' => $values, 'errors' => $errors)) ?>
@@ -32,4 +36,4 @@
= t('or') ?>
= $this->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/doc/plugin-hooks.markdown b/doc/plugin-hooks.markdown
index 2237e3549..f6760f966 100644
--- a/doc/plugin-hooks.markdown
+++ b/doc/plugin-hooks.markdown
@@ -169,6 +169,9 @@ List of template hooks:
| `template:project:integrations` | Integration page in projects settings |
| `template:project:sidebar` | Sidebar in project settings |
| `template:project-user:sidebar` | Sidebar on project user overview page |
+| `template:task:layout:top` | Task layout top (after page header) |
+| `template:task:details:top` | Task summary top |
+| `template:task:details:bottom` | Task summary bottom |
| `template:task:details:first-column` | Task summary first column |
| `template:task:details:second-column` | Task summary second column |
| `template:task:details:third-column` | Task summary third column |
@@ -184,7 +187,7 @@ List of template hooks:
| `template:task:show:before-tasklinks` | Show task page: before tasklinks |
| `template:task:show:before-subtasks` | Show task page: before subtasks |
| `template:task:show:before-timetracking` | Show task page: before timetracking |
-| `template:task:show:before-attachements` | Show task page: before attachments |
+| `template:task:show:before-attachments` | Show task page: before attachments |
| `template:task:show:before-comments` | Show task page: before comments |
| `template:user:authentication:form` | "Edit authentication" form in user profile |
| `template:user:create-remote:form` | "Create remote user" form |