summaryrefslogtreecommitdiff
path: root/app/Template/swimlane/table.php
blob: 89915d569da89885cee5dbc89d1a0c793b3a510a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<table>
    <tr>
        <?php if (! isset($hide_position)): ?>
            <th class="column-10"><?= t('Position') ?></th>
        <?php endif ?>
        <th><?= t('Name') ?></th>
        <th class="column-8"><?= t('Actions') ?></th>
    </tr>
    <?php foreach ($swimlanes as $swimlane): ?>
    <tr>
        <?php if (! isset($hide_position)): ?>
            <td>#<?= $swimlane['position'] ?></td>
        <?php endif ?>
        <td><?= $this->e($swimlane['name']) ?></td>
        <td>
            <div class="dropdown">
            <a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a>
            <ul>
                <?php if ($swimlane['position'] != 0 && $swimlane['position'] != 1): ?>
                    <li>
                        <?= $this->url->link(t('Move Up'), 'swimlane', 'moveup', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
                    </li>
                <?php endif ?>
                <?php if ($swimlane['position'] != 0 && $swimlane['position'] != count($swimlanes)): ?>
                    <li>
                        <?= $this->url->link(t('Move Down'), 'swimlane', 'movedown', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
                    </li>
                <?php endif ?>
                <li>
                    <?= $this->url->link(t('Edit'), 'swimlane', 'edit', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?>
                </li>
                <li>
                    <?php if ($swimlane['is_active']): ?>
                        <?= $this->url->link(t('Disable'), 'swimlane', 'disable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
                    <?php else: ?>
                        <?= $this->url->link(t('Enable'), 'swimlane', 'enable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
                    <?php endif ?>
                </li>
                <li>
                    <?= $this->url->link(t('Remove'), 'swimlane', 'confirm', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?>
                </li>
            </ul>
            </div>
        </td>
    </tr>
    <?php endforeach ?>
</table>