From a44d7fa396774af97a1dfe3bb06be3515b9723e1 Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 28 Sep 2016 17:25:32 +0100 Subject: Added hook for plugins --- app/Template/subtask/create.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/create.php b/app/Template/subtask/create.php index 3c080f7c..cc4ccba6 100644 --- a/app/Template/subtask/create.php +++ b/app/Template/subtask/create.php @@ -9,7 +9,8 @@ subtask->selectTitle($values, $errors, array('autofocus')) ?> subtask->selectAssignee($users_list, $values, $errors) ?> subtask->selectTimeEstimated($values, $errors) ?> - + hook->render('template:subtask:form:create', array('values' => $values, 'errors' => $errors)) ?> + form->checkbox('another_subtask', t('Create another sub-task'), 1, isset($values['another_subtask']) && $values['another_subtask'] == 1) ?>
-- cgit v1.2.3 From ee2de22b58da86400de33b0bd5f8cc6383ce88ea Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 28 Sep 2016 17:25:52 +0100 Subject: Added hook for plugins --- app/Template/subtask/edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/edit.php b/app/Template/subtask/edit.php index 8f256cea..07419f79 100644 --- a/app/Template/subtask/edit.php +++ b/app/Template/subtask/edit.php @@ -11,7 +11,8 @@ subtask->selectAssignee($users_list, $values, $errors) ?> subtask->selectTimeEstimated($values, $errors) ?> subtask->selectTimeSpent($values, $errors) ?> - + hook->render('template:subtask:form:edit', array('values' => $values, 'errors' => $errors)) ?> +
-- cgit v1.2.3 From 7a9ee838f02483c995216450b9b3dcfcee02e32d Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 28 Sep 2016 17:28:48 +0100 Subject: Added hooks for plugins --- app/Template/subtask/table.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index 5c60df44..a13103f0 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,6 +7,7 @@ + hook->render('template:subtask:table:header', array('values' => $values, 'errors' => $errors)) ?> @@ -29,6 +30,7 @@ text->e($subtask['name'] ?: $subtask['username']) ?> + hook->render('template:subtask:table:rows', array('subtask' => $subtask)) ?>
  • -- cgit v1.2.3 From b2cfe6f0b188db64c602414db1faa6d0fbd29fca Mon Sep 17 00:00:00 2001 From: Eskiso Date: Mon, 3 Oct 2016 23:40:14 +0100 Subject: Removed $values and $errors --- app/Template/subtask/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index a13103f0..0c4e6df0 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,7 +7,7 @@ - hook->render('template:subtask:table:header', array('values' => $values, 'errors' => $errors)) ?> + hook->render('template:subtask:table:header', array('subtask' => $subtask)) ?> -- cgit v1.2.3 From 33436390b83a5287f09a25801fffcbdef4cbbeeb Mon Sep 17 00:00:00 2001 From: Eskiso Date: Tue, 4 Oct 2016 08:53:07 +0100 Subject: No need for values in array --- app/Template/subtask/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index 0c4e6df0..6ce7dc0a 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,7 +7,7 @@ - hook->render('template:subtask:table:header', array('subtask' => $subtask)) ?> + hook->render('template:subtask:table:header', array()) ?> -- cgit v1.2.3 From f9fa6ceb859c2974bb56c2f2b5bf103219e70994 Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 5 Oct 2016 02:27:15 +0100 Subject: Removed second argument (empty) --- app/Template/subtask/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index 6ce7dc0a..d5d67165 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,7 +7,7 @@ - hook->render('template:subtask:table:header', array()) ?> + hook->render('template:subtask:table:header') ?> -- cgit v1.2.3 From 471f24f41437fe476dd17c0000169ec100d8c894 Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 5 Oct 2016 02:35:35 +0100 Subject: Renamed hook to better describe position. --- app/Template/subtask/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/subtask') diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index d5d67165..bea49aed 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,7 +7,7 @@ - hook->render('template:subtask:table:header') ?> + hook->render('template:subtask:table:header:before-timetracking') ?> -- cgit v1.2.3