diff options
Diffstat (limited to 'app/Template/swimlane/table.php')
-rw-r--r-- | app/Template/swimlane/table.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app/Template/swimlane/table.php b/app/Template/swimlane/table.php new file mode 100644 index 00000000..f38572a3 --- /dev/null +++ b/app/Template/swimlane/table.php @@ -0,0 +1,44 @@ +<table> + <tr> + <?php if (! isset($hide_position)): ?> + <th><?= t('Position') ?></th> + <?php endif ?> + <th class="column-60"><?= t('Name') ?></th> + <th class="column-35"><?= 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> + <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('Rename'), '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> + </td> + </tr> + <?php endforeach ?> +</table>
\ No newline at end of file |