diff options
Diffstat (limited to 'src/medsrv/templates/peer/list.cs')
-rwxr-xr-x | src/medsrv/templates/peer/list.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/medsrv/templates/peer/list.cs b/src/medsrv/templates/peer/list.cs new file mode 100755 index 000000000..205452641 --- /dev/null +++ b/src/medsrv/templates/peer/list.cs @@ -0,0 +1,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" ?> |