diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-10-05 08:46:39 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-10-05 08:46:39 -0400 |
commit | 9159be81ec48dafa4ce0302418e5fcd2a95d734c (patch) | |
tree | 91e6fc577491d0ba73d8c24dd09c6e97a350064c /app/Template/subtask | |
parent | 1c0fad6e129aa390ae0926718c2c1d041959d2a3 (diff) | |
parent | b18e3d6a5c25cfbfc87ee4d62231ff8a2866da52 (diff) |
Merge pull-request #2707
Diffstat (limited to 'app/Template/subtask')
-rw-r--r-- | app/Template/subtask/create.php | 3 | ||||
-rw-r--r-- | app/Template/subtask/edit.php | 3 | ||||
-rw-r--r-- | app/Template/subtask/table.php | 2 |
3 files changed, 6 insertions, 2 deletions
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 @@ <?= $this->subtask->selectTitle($values, $errors, array('autofocus')) ?> <?= $this->subtask->selectAssignee($users_list, $values, $errors) ?> <?= $this->subtask->selectTimeEstimated($values, $errors) ?> - + <?= $this->hook->render('template:subtask:form:create', array('values' => $values, 'errors' => $errors)) ?> + <?= $this->form->checkbox('another_subtask', t('Create another sub-task'), 1, isset($values['another_subtask']) && $values['another_subtask'] == 1) ?> <div class="form-actions"> 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 @@ <?= $this->subtask->selectAssignee($users_list, $values, $errors) ?> <?= $this->subtask->selectTimeEstimated($values, $errors) ?> <?= $this->subtask->selectTimeSpent($values, $errors) ?> - + <?= $this->hook->render('template:subtask:form:edit', array('values' => $values, 'errors' => $errors)) ?> + <div class="form-actions"> <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> <?= t('or') ?> diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index 5c60df44..bea49aed 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -7,6 +7,7 @@ <tr> <th class="column-40"><?= t('Title') ?></th> <th><?= t('Assignee') ?></th> + <?= $this->hook->render('template:subtask:table:header:before-timetracking') ?> <th><?= t('Time tracking') ?></th> <?php if ($editable): ?> <th class="column-5"></th> @@ -29,6 +30,7 @@ <?= $this->text->e($subtask['name'] ?: $subtask['username']) ?> <?php endif ?> </td> + <?= $this->hook->render('template:subtask:table:rows', array('subtask' => $subtask)) ?> <td> <ul class="no-bullet"> <li> |