diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-19 13:53:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-19 13:53:33 -0400 |
commit | 9eeb7d18201ad817d8c5eb88995a48c5bd44d22a (patch) | |
tree | 27759f30e7ea8fe22513f826b4971332cc0bf4a7 /app/Template/subtask | |
parent | 90ed654e2b6711211445910099e41cc2ef6d0b44 (diff) |
Improve quick-add subtasks form
Diffstat (limited to 'app/Template/subtask')
-rw-r--r-- | app/Template/subtask/show.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index cc82a74e..1f0f9bba 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -29,7 +29,11 @@ </td> <td> <?php if (! empty($subtask['username'])): ?> - <?= $this->url->link($this->e($subtask['name'] ?: $subtask['username']), 'user', 'show', array('user_id' => $subtask['user_id'])) ?> + <?php if (! isset($not_editable)): ?> + <?= $this->url->link($this->e($subtask['name'] ?: $subtask['username']), 'user', 'show', array('user_id' => $subtask['user_id'])) ?> + <?php else: ?> + <?= $this->e($subtask['name'] ?: $subtask['username']) ?> + <?php endif ?> <?php endif ?> </td> <td> @@ -88,6 +92,8 @@ <?= $this->form->csrf() ?> <?= $this->form->hidden('task_id', array('task_id' => $task['id'])) ?> <?= $this->form->text('title', array(), array(), array('required', 'placeholder="'.t('Type here to create a new sub-task').'"')) ?> + <?= $this->form->numeric('time_estimated', array(), array(), array('placeholder="'.t('Original estimate').'"')) ?> + <?= $this->form->select('user_id', $users_list, array(), array(), array('placeholder="'.t('Assignee').'"')) ?> <input type="submit" value="<?= t('Add') ?>" class="btn btn-blue"/> </form> <?php endif ?> |