add new hooks #1742

This commit is contained in:
Timo Litzbarski
2016-03-02 11:54:33 +00:00
parent 6ef83d0e05
commit b3f43050c8
2 changed files with 55 additions and 31 deletions

View File

@@ -1,11 +1,17 @@
<?= $this->hook->render('template:task:show:top', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('task/details', array( <?= $this->render('task/details', array(
'task' => $task, 'task' => $task,
'project' => $project, 'project' => $project,
'editable' => $this->user->hasProjectAccess('taskmodification', 'edit', $project['id']), 'editable' => $this->user->hasProjectAccess('taskmodification', 'edit', $project['id']),
)) ?> )) ?>
<?= $this->hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('task/description', array('task' => $task)) ?> <?= $this->render('task/description', array('task' => $task)) ?>
<?= $this->hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('subtask/show', array( <?= $this->render('subtask/show', array(
'task' => $task, 'task' => $task,
'subtasks' => $subtasks, 'subtasks' => $subtasks,
@@ -14,6 +20,8 @@
'editable' => true, 'editable' => true,
)) ?> )) ?>
<?= $this->hook->render('template:task:show:before-tasklinks', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('tasklink/show', array( <?= $this->render('tasklink/show', array(
'task' => $task, 'task' => $task,
'links' => $links, 'links' => $links,
@@ -22,17 +30,25 @@
'is_public' => false, 'is_public' => false,
)) ?> )) ?>
<?= $this->hook->render('template:task:show:before-timetracking', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('task/time_tracking_summary', array('task' => $task)) ?> <?= $this->render('task/time_tracking_summary', array('task' => $task)) ?>
<?= $this->hook->render('template:task:show:before-attachements', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('task_file/show', array( <?= $this->render('task_file/show', array(
'task' => $task, 'task' => $task,
'files' => $files, 'files' => $files,
'images' => $images 'images' => $images
)) ?> )) ?>
<?= $this->hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?>
<?= $this->render('task/comments', array( <?= $this->render('task/comments', array(
'task' => $task, 'task' => $task,
'comments' => $comments, 'comments' => $comments,
'project' => $project, 'project' => $project,
'editable' => $this->user->hasProjectAccess('comment', 'edit', $project['id']), 'editable' => $this->user->hasProjectAccess('comment', 'edit', $project['id']),
)) ?> )) ?>
<?= $this->hook->render('template:task:show:bottom', array('task' => $task, 'project' => $project)) ?>

View File

@@ -152,7 +152,7 @@ Template names without prefix are core templates.
List of template hooks: List of template hooks:
| Hook | Description | | Hook | Description |
|--------------------------------------|----------------------------------------------------| |------------------------------------------|----------------------------------------------------|
| `template:analytic:sidebar` | Sidebar on analytic pages | | `template:analytic:sidebar` | Sidebar on analytic pages |
| `template:app:filters-helper:before` | Filter helper dropdown (top) | | `template:app:filters-helper:before` | Filter helper dropdown (top) |
| `template:app:filters-helper:after` | Filter helper dropdown (bottom) | | `template:app:filters-helper:after` | Filter helper dropdown (bottom) |
@@ -176,6 +176,14 @@ List of template hooks:
| `template:task:dropdown` | Task dropdown menu in listing pages | | `template:task:dropdown` | Task dropdown menu in listing pages |
| `template:task:sidebar` | Sidebar on task page | | `template:task:sidebar` | Sidebar on task page |
| `template:task:form:right-column` | Right column in task form | | `template:task:form:right-column` | Right column in task form |
| `template:task:show:top ` | Show task page: top |
| `template:task:show:bottom` | Show task page: bottom |
| `template:task:show:before-description` | Show task page: before description |
| `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-comments` | Show task page: before comments |
| `template:user:authentication:form` | "Edit authentication" form in user profile | | `template:user:authentication:form` | "Edit authentication" form in user profile |
| `template:user:create-remote:form` | "Create remote user" form | | `template:user:create-remote:form` | "Create remote user" form |
| `template:user:external` | "External authentication" page in user profile | | `template:user:external` | "External authentication" page in user profile |