diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-07 19:29:39 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-07 19:29:39 -0400 |
commit | 4807f3e8a0ac2cca2706fb8215b762541982c682 (patch) | |
tree | 8d9501bdef7a15a9e6c9165266c57ece9c72a485 /app/Template/task/time.php | |
parent | 58297ca3b11b9ad526a8ac344e5ac56d9e1b5a13 (diff) |
Add icon to set automatically the start date
Diffstat (limited to 'app/Template/task/time.php')
-rw-r--r-- | app/Template/task/time.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/task/time.php b/app/Template/task/time.php index 9e024c7f..90407d7a 100644 --- a/app/Template/task/time.php +++ b/app/Template/task/time.php @@ -1,4 +1,9 @@ <form method="post" action="<?= $this->url->href('task', 'time', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" class="form-inline task-time-form" autocomplete="off"> + + <?php if (empty($values['date_started'])): ?> + <?= $this->url->link('<i class="fa fa-play"></i>', 'task', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-show-start-link', t('Set automatically the start date')) ?> + <?php endif ?> + <?= $this->form->csrf() ?> <?= $this->form->hidden('id', $values) ?> |