summaryrefslogtreecommitdiff
path: root/templates/task_sidebar.php
blob: 314d52143c93d54962e30cb2a8db596ec5c27a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="task-show-sidebar">
    <h2><?= t('Actions') ?></h2>
    <div class="task-show-actions">
        <ul>
            <li><a href="?controller=task&amp;action=duplicate&amp;project_id=<?= $task['project_id'] ?>&amp;task_id=<?= $task['id'] ?>"><?= t('Duplicate') ?></a></li>
            <li><a href="?controller=task&amp;action=edit&amp;task_id=<?= $task['id'] ?>"><?= t('Edit') ?></a></li>
            <li>
                <?php if ($task['is_active'] == 1): ?>
                    <a href="?controller=task&amp;action=confirmClose&amp;task_id=<?= $task['id'] ?>"><?= t('Close this task') ?></a>
                <?php else: ?>
                    <a href="?controller=task&amp;action=confirmOpen&amp;task_id=<?= $task['id'] ?>"><?= t('Open this task') ?></a>
                <?php endif ?>
            </li>
            <li><a href="?controller=task&amp;action=confirmRemove&amp;task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li>
        </ul>
    </div>
</div>