diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
commit | db67c87db3c9089ea8d2e14f617bf3d9e2af261f (patch) | |
tree | 665c0caea83d34c11c1517c4c57137bb58cba6fb /src/medsrv/templates/peer | |
parent | 1c088a8b6237ec67f63c23f97a0f2dc4e99af869 (diff) | |
download | vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.tar.gz vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.zip |
[svn-upgrade] Integrating new upstream version, strongswan (4.2.4)
Diffstat (limited to 'src/medsrv/templates/peer')
-rwxr-xr-x | src/medsrv/templates/peer/add.cs | 24 | ||||
-rwxr-xr-x | src/medsrv/templates/peer/edit.cs | 25 | ||||
-rwxr-xr-x | src/medsrv/templates/peer/list.cs | 28 |
3 files changed, 77 insertions, 0 deletions
diff --git a/src/medsrv/templates/peer/add.cs b/src/medsrv/templates/peer/add.cs new file mode 100755 index 000000000..28a994f7f --- /dev/null +++ b/src/medsrv/templates/peer/add.cs @@ -0,0 +1,24 @@ +<?cs include:"templates/header.cs" ?> +<form method="post"> +<?cs if:?error ?> + <div class="error"><?cs var:error ?></div> +<?cs /if ?> + <table class="peer"> + <tr> + <td><label for="alias">Alias</label></td> + <td><input type="text" id="alias" name="alias" class="focus" maxlength="30" value="<?cs var:alias ?>";"/></td> + </tr> + <tr> + <td valign="top"><label for="public_key">Public Key</label></td> + <td><textarea id="public_key" name="public_key"><?cs var:public_key ?></textarea></td> + </tr> + <tr> + <td></td> + <td class="right"> + <input type="submit" value="Back" name="back"/> + <input type="submit" value="Add" name="add"/> + </td> + </tr> +</table> +</form> +<?cs include:"templates/footer.cs" ?> diff --git a/src/medsrv/templates/peer/edit.cs b/src/medsrv/templates/peer/edit.cs new file mode 100755 index 000000000..76fb9dafc --- /dev/null +++ b/src/medsrv/templates/peer/edit.cs @@ -0,0 +1,25 @@ +<?cs include:"templates/header.cs" ?> +<form method="post" name="form"> +<?cs if:?error ?> + <div class="error"><?cs var:error ?></div> +<?cs /if ?> + <table class="peer"> + <tr> + <td><label for="alias">Alias</label></td> + <td><input type="text" id="alias" name="alias" maxlength="30" class="focus" value="<?cs var:alias ?>"/></td> + </tr> + <tr> + <td valign="top"><label for="public_key">Public Key</label></td> + <td><textarea id="public_key" name="public_key"><?cs var:public_key ?></textarea></td> + </tr> + <tr> + <td></td> + <td align="right"> + <input type="submit" value="Back" name="back"/> + <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete this peer?')"/> + <input type="submit" value="Save" name="save"/> + </td> + </tr> +</table> +</form> +<?cs include:"templates/footer.cs" ?> 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" ?> |