summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_title.php
blob: 92d61b6c2947cc22ce90a203291f18bd2b780c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div>
    <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
        <?php if (isset($show_items_selection)): ?>
            <input type="checkbox" data-list-item="selectable" name="tasks[]" value="<?= $task['id'] ?>">
        <?php endif ?>
        <?= $this->render('task/dropdown', array('task' => $task)) ?>
    <?php else: ?>
        <strong><?= '#'.$task['id'] ?></strong>
    <?php endif ?>

    <span class="table-list-title <?= $task['is_active'] == 0 ? 'status-closed' : '' ?>">
        <?= $this->url->link($this->text->e($task['title']), 'TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])) ?>
    </span>
</div>