diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-10 14:36:17 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-10 14:36:17 -0400 |
commit | c9dcd7061708114c72c0c7d80d108661308b1e50 (patch) | |
tree | 6fe0a070425b941d6f420311e302b4b95eda423f /app/Template/task/details.php | |
parent | b51d41f331b0948add637d5f0f7093b96c268dd0 (diff) |
Recurring tasks (#847): template cleanup
Diffstat (limited to 'app/Template/task/details.php')
-rw-r--r-- | app/Template/task/details.php | 47 |
1 files changed, 10 insertions, 37 deletions
diff --git a/app/Template/task/details.php b/app/Template/task/details.php index 331862b9..32f0fbb8 100644 --- a/app/Template/task/details.php +++ b/app/Template/task/details.php @@ -80,43 +80,16 @@ <?= $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']) ?> + + <?php if (! isset($not_editable) && $task['recurrence_status'] != \Model\Task::RECURE_STATUS_NONE): ?> + <li> + <strong><?= t('Recurring information') ?></strong> + <?= $this->render('task/recurring_info', array( + 'task' => $task, + 'recurrence_trigger_list' => $recurrence_trigger_list, + 'recurrence_timeframe_list' => $recurrence_timeframe_list, + 'recurrence_basedate_list' => $recurrence_basedate_list, + )) ?> </li> <?php endif ?> </ul> |