summaryrefslogtreecommitdiff
path: root/app/Template/task/details.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-10 13:45:09 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-10 13:45:09 -0400
commit94a5b12e68fc5e5f6aee7bf1d6d25427421aba7a (patch)
treeaa1f86e9fd134ec60534446948dcd2d54e02e5f7 /app/Template/task/details.php
parent98aab0d99465b40907bbc1f1108ea20db290e036 (diff)
parentec24efa2d9599eaf6cbc39da25cffeaff555ba3c (diff)
Merge pull-request #847 (recurring tasks)
Diffstat (limited to 'app/Template/task/details.php')
-rw-r--r--app/Template/task/details.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/Template/task/details.php b/app/Template/task/details.php
index 76241acf..331862b9 100644
--- a/app/Template/task/details.php
+++ b/app/Template/task/details.php
@@ -80,5 +80,44 @@
<?= $this->a(t('Public link'), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token']), false, '', '', true) ?>
</li>
<?php endif ?>
+ <?php if ($task['recurrence_status'] == \Model\Task::RECURE_STATUS_NONE): ?>
+ <li>
+ <?= t('No recurrent task is scheduled to generate') ?>
+ </li>
+ <?php endif ?>
+ <?php if ($task['recurrence_status'] != \Model\Task::RECURE_STATUS_NONE): ?>
+ <li>
+ <?php if ($task['recurrence_status'] == \Model\Task::RECURE_STATUS_PENDING): ?>
+ <?= t('Recurrent task is scheduled to generate') ?>
+ <?php endif ?>
+ <?php if ($task['recurrence_status'] == \Model\Task::RECURE_STATUS_PROCESSED): ?>
+ <?= t('Recurrent task has been generated') ?>
+ <?php endif ?>
+ <ul>
+ <li>
+ <?= t('Trigger to generate recurrent task: %s', $recurrence_trigger_list[$task['recurrence_trigger']]) ?></stong>
+ </li>
+ <li>
+ <?= t('Factor to calculate new due date: %s', $task['recurrence_factor']) ?></stong>
+ </li>
+ <li>
+ <?= t('Timeframe to calculate new due date: %s', $recurrence_timeframe_list[$task['recurrence_timeframe']]) ?></stong>
+ </li>
+ <li>
+ <?= t('Base date to calculate new due date: %s', $recurrence_basedate_list[$task['recurrence_basedate']]) ?></stong>
+ </li>
+ </ul>
+ </li>
+ <?php endif ?>
+ <?php if ($task['recurrence_parent']): ?>
+ <li>
+ <?= t('Recurrent task created by: %s', $task['recurrence_parent']) ?>
+ </li>
+ <?php endif ?>
+ <?php if ($task['recurrence_child']): ?>
+ <li>
+ <?= t('Created recurrent task: %s', $task['recurrence_child']) ?>
+ </li>
+ <?php endif ?>
</ul>
</div>