summaryrefslogtreecommitdiff
path: root/app/Template/link/show.php
blob: 6aadd66b8aff38ce6123d6fc6c18325dd11cd923 (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
<div class="page-header">
    <h2><?= t('Link labels') ?></h2>
    <ul>
        <li>
            <?= $this->modal->medium('plus', t('Add link label'), 'LinkController', 'create') ?>
        </li>
    </ul>
</div>
<?php if (! empty($links)): ?>
    <table class="table-striped table-scrolling">
        <tr>
            <th class="column-70"><?= t('Link labels') ?></th>
            <th><?= t('Actions') ?></th>
        </tr>
        <?php foreach ($links as $link): ?>
        <tr>
            <td>
                <strong><?= t($link['label']) ?></strong>

                <?php if (! empty($link['opposite_label'])): ?>
                    | <?= t($link['opposite_label']) ?>
                <?php endif ?>
            </td>
            <td>
                <ul>
                    <?= $this->modal->medium('edit', t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?>
                    <?= t('or') ?>
                    <?= $this->modal->confirm('trash-o', t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?>
                </ul>
            </td>
        </tr>
        <?php endforeach ?>
    </table>
<?php else: ?>
    <?= t('There is no link.') ?>
<?php endif ?>