summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/sni/index.phtml
blob: 09c4de8936de1371483d21d95608fbe6af869ab3 (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
<div class="controls">
    <?= /** @var \Icinga\Web\Widget\Tabs $tabs */ $tabs ?>
</div>
<div class="content">
    <div class="actions">
        <?= $this->qlink(
            $this->translate('Create a New SNI Map') ,
            'x509/sni/new',
            null,
            [
                'class'             => 'button-link',
                'data-base-target'  => '_next',
                'icon'              => 'plus',
                'title'             => $this->translate('Create a New SNI Map')
            ]
        ) ?>
    </div>
    <?php /** @var \Icinga\Repository\RepositoryQuery $sni */ if (! $sni->hasResult()): ?>
        <p><?= $this->escape($this->translate('No SNI maps configured yet.')) ?></p>
    <?php else: ?>
        <table class="common-table table-row-selectable" data-base-target="_next">
            <thead>
            <tr>
                <th><?= $this->escape($this->translate('IP')) ?></th>
            </tr>
            </thead>
            <tbody>
            <?php foreach ($sni as $data): ?>
                <tr>
                    <td><?= $this->qlink($data->ip, 'x509/sni/update', ['ip' => $data->ip]) ?></td>
                    <td class="icon-col"><?= $this->qlink(
                            null,
                            'x509/sni/remove',
                            array('ip' => $data->ip),
                            array(
                                'class' => 'action-link',
                                'icon'  => 'cancel',
                                'title' => $this->translate('Remove this SNI map')
                            )
                        ) ?></td>
                </tr>
            <?php endforeach ?>
            </tbody>
        </table>
    <?php endif ?>
</div>