summaryrefslogtreecommitdiff
path: root/app/Template/task/time_tracking_summary.php
blob: 63de733a2979ec6931ed55c4e914902d663017c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?>
    <div class="page-header">
        <h2><?= t('Time tracking') ?></h2>
    </div>

    <div class="panel">
        <ul>
            <li><?= t('Estimate:') ?> <strong><?= $this->text->e($task['time_estimated']) ?></strong> <?= t('hours') ?></li>
            <li><?= t('Spent:') ?> <strong><?= $this->text->e($task['time_spent']) ?></strong> <?= t('hours') ?></li>
            <li><?= t('Remaining:') ?> <strong><?= $this->text->e($task['time_estimated'] - $task['time_spent']) ?></strong> <?= t('hours') ?></li>
        </ul>
    </div>
<?php endif ?>