summaryrefslogtreecommitdiff
path: root/app/Template/task
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task')
-rw-r--r--app/Template/task/menu.php6
-rw-r--r--app/Template/task/show.php7
2 files changed, 6 insertions, 7 deletions
diff --git a/app/Template/task/menu.php b/app/Template/task/menu.php
index 426cfb3d..20fca22b 100644
--- a/app/Template/task/menu.php
+++ b/app/Template/task/menu.php
@@ -2,6 +2,12 @@
<div class="dropdown">
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
<ul>
+ <?php if (empty($task['date_started'])): ?>
+ <li>
+ <i class="fa fa-play fa-fw"></i>
+ <?= $this->url->link(t('Set automatically the start date'), 'taskmodification', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <?php endif ?>
<li>
<i class="fa fa-pencil-square-o fa-fw"></i>
<?= $this->url->link(t('Edit the task'), 'taskmodification', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
diff --git a/app/Template/task/show.php b/app/Template/task/show.php
index e18b47fc..277c99c0 100644
--- a/app/Template/task/show.php
+++ b/app/Template/task/show.php
@@ -1,16 +1,9 @@
<?= $this->render('task/details', array(
'task' => $task,
'project' => $project,
- 'recurrence_trigger_list' => $this->task->recurrenceTriggers(),
- 'recurrence_timeframe_list' => $this->task->recurrenceTimeframes(),
- 'recurrence_basedate_list' => $this->task->recurrenceBasedates(),
'editable' => $this->user->hasProjectAccess('taskmodification', 'edit', $project['id']),
)) ?>
-<?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $project['id'])): ?>
- <?= $this->render('task_modification/edit_time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?>
-<?php endif ?>
-
<?= $this->render('task/description', array('task' => $task)) ?>
<?= $this->render('subtask/show', array(