summaryrefslogtreecommitdiff
path: root/src/medsrv/templates/peer/list.cs
blob: 2054526410999f3e31e7c58120c732c6fbe51f6f (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
<?cs include:"templates/header.cs" ?>
<div>
<?cs if subcount(peers) > 0 ?>
<table class="list">
  <tr>
    <th>Alias</th>
    <th>Key Identifier</th>
  </tr>
<?cs each:peer = peers ?>
  <tr>
    <td>
      <a href="<?cs var:base ?>/peer/edit/<?cs name:peer?>"><?cs var:peer.alias ?></a>
    </td>
    <td>
      <a href="<?cs var:base ?>/peer/edit/<?cs name:peer?>"><?cs var:peer.identifier ?></a>
    </td>
  </tr>
<?cs /each ?>
</table>
<?cs else ?>
No peers defined.
<?cs /if ?>
<div class="right">
<form action="<?cs var:base ?>/peer/add" method="get">
    <input type="submit" value="Add Peer"/></td>
</form>
</div>
<?cs include:"templates/footer.cs" ?>