summaryrefslogtreecommitdiff
path: root/app/Template/task_modification/edit_time.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-19 18:14:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-19 18:14:20 -0400
commit401b0bdfb10ebfe75c9a392de52d37cc3c22c062 (patch)
tree841bf69b8d404a29ab92692a9ebfb8d5a7e500e1 /app/Template/task_modification/edit_time.php
parentfcdd71af2cabdd1252172ac83a24be8672ca34cc (diff)
Split task controller into smaller classes
Diffstat (limited to 'app/Template/task_modification/edit_time.php')
-rw-r--r--app/Template/task_modification/edit_time.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Template/task_modification/edit_time.php b/app/Template/task_modification/edit_time.php
new file mode 100644
index 00000000..8e7f9b42
--- /dev/null
+++ b/app/Template/task_modification/edit_time.php
@@ -0,0 +1,20 @@
+<form method="post" action="<?= $this->url->href('taskmodification', '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>', 'taskmodification', '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) ?>
+
+ <?= $this->form->label(t('Start date'), 'date_started') ?>
+ <?= $this->form->text('date_started', $values, array(), array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-datetime') ?>
+
+ <?= $this->form->label(t('Time estimated'), 'time_estimated') ?>
+ <?= $this->form->numeric('time_estimated', $values, array(), array('placeholder="'.t('hours').'"')) ?>
+
+ <?= $this->form->label(t('Time spent'), 'time_spent') ?>
+ <?= $this->form->numeric('time_spent', $values, array(), array('placeholder="'.t('hours').'"')) ?>
+
+ <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
+</form> \ No newline at end of file