Add icon to set automatically the start date

This commit is contained in:
Frederic Guillot
2015-07-07 19:29:39 -04:00
parent 58297ca3b1
commit 4807f3e8a0
5 changed files with 44 additions and 0 deletions

View File

@@ -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) ?>