summaryrefslogtreecommitdiff
path: root/app/Template/task/recurring_info.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-10 14:36:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-10 14:36:17 -0400
commitc9dcd7061708114c72c0c7d80d108661308b1e50 (patch)
tree6fe0a070425b941d6f420311e302b4b95eda423f /app/Template/task/recurring_info.php
parentb51d41f331b0948add637d5f0f7093b96c268dd0 (diff)
Recurring tasks (#847): template cleanup
Diffstat (limited to 'app/Template/task/recurring_info.php')
-rw-r--r--app/Template/task/recurring_info.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/Template/task/recurring_info.php b/app/Template/task/recurring_info.php
new file mode 100644
index 00000000..1009a970
--- /dev/null
+++ b/app/Template/task/recurring_info.php
@@ -0,0 +1,37 @@
+<ul>
+ <?php if ($task['recurrence_status'] == \Model\Task::RECURE_STATUS_PENDING): ?>
+ <li><?= t('Recurrent task is scheduled to be generated') ?></li>
+ <?php elseif ($task['recurrence_status'] == \Model\Task::RECURE_STATUS_PROCESSED): ?>
+ <li><?= t('Recurrent task has been generated') ?>
+ <ul>
+ <li>
+ <?= t('Trigger to generate recurrent task: ') ?><strong><?= $this->e($recurrence_trigger_list[$task['recurrence_trigger']]) ?></strong>
+ </li>
+ <li>
+ <?= t('Factor to calculate new due date: ') ?><strong><?= $this->e($task['recurrence_factor']) ?></strong>
+ </li>
+ <li>
+ <?= t('Timeframe to calculate new due date: ') ?><strong><?= $this->e($recurrence_timeframe_list[$task['recurrence_timeframe']]) ?></strong>
+ </li>
+ <li>
+ <?= t('Base date to calculate new due date: ') ?><strong><?= $this->e($recurrence_basedate_list[$task['recurrence_basedate']]) ?></strong>
+ </li>
+ </ul>
+ </li>
+ <?php endif ?>
+
+ <?php if ($task['recurrence_parent'] || $task['recurrence_child']): ?>
+ <?php if ($task['recurrence_parent']): ?>
+ <li>
+ <?= t('Recurrent task created by: ') ?>
+ <?= $this->a('#'.$task['recurrence_parent'], 'task', 'show', array('task_id' => $task['recurrence_parent'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <?php endif ?>
+ <?php if ($task['recurrence_child']): ?>
+ <li>
+ <?= t('Created recurrent task: ') ?>
+ <?= $this->a('#'.$task['recurrence_child'], 'task', 'show', array('task_id' => $task['recurrence_child'], 'project_id' => $task['project_id'])) ?>
+ </li>
+ <?php endif ?>
+ <?php endif ?>
+</ul> \ No newline at end of file