aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/templates')
-rw-r--r--src/manager/templates/auth/login.cs15
-rw-r--r--src/manager/templates/auth/logout.cs0
-rw-r--r--src/manager/templates/footer.cs2
-rw-r--r--src/manager/templates/gateway/list.cs13
-rw-r--r--src/manager/templates/header.cs8
-rw-r--r--src/manager/templates/static/style.css188
-rw-r--r--src/manager/templates/status/ikesalist.cs1
7 files changed, 227 insertions, 0 deletions
diff --git a/src/manager/templates/auth/login.cs b/src/manager/templates/auth/login.cs
new file mode 100644
index 000000000..f84c6307c
--- /dev/null
+++ b/src/manager/templates/auth/login.cs
@@ -0,0 +1,15 @@
+<?cs include:"templates/header.cs" ?>
+<form method="post" action="<?cs var:action ?>">
+ <table width="100%">
+ <tr>
+ <td>Username</td><td><input type="text" name="username" value="" size="25" /></td>
+ </tr>
+ <tr>
+ <td>Password</td><td><input type="password" name="password" value="" size="25" /></td>
+ </tr>
+ <tr>
+ <td/><td><input type="submit" value="Login"/></td>
+ </tr>
+</table>
+</form>
+<?cs include:"templates/footer.cs" ?>
diff --git a/src/manager/templates/auth/logout.cs b/src/manager/templates/auth/logout.cs
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/src/manager/templates/auth/logout.cs
diff --git a/src/manager/templates/footer.cs b/src/manager/templates/footer.cs
new file mode 100644
index 000000000..b605728ee
--- /dev/null
+++ b/src/manager/templates/footer.cs
@@ -0,0 +1,2 @@
+ </body>
+</html>
diff --git a/src/manager/templates/gateway/list.cs b/src/manager/templates/gateway/list.cs
new file mode 100644
index 000000000..5cc8603b1
--- /dev/null
+++ b/src/manager/templates/gateway/list.cs
@@ -0,0 +1,13 @@
+<?cs include:"templates/header.cs" ?>
+<form method="post" action="<?cs var:action ?>">
+ <p>
+ <select name="gateway" size="1">
+ <?cs each:gateway = gateways ?>
+ <option value="<?cs name:gateway ?>"><?cs var:gateway.name ?> (<?cs var:gateway.address ?>)</option>
+ <?cs /each ?>
+ </select>
+ </p>
+ <input type="submit" value="Select"/>
+ <p>
+</form>
+<?cs include:"templates/footer.cs" ?>
diff --git a/src/manager/templates/header.cs b/src/manager/templates/header.cs
new file mode 100644
index 000000000..b417ef916
--- /dev/null
+++ b/src/manager/templates/header.cs
@@ -0,0 +1,8 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <link rel="stylesheet" type="text/css" href="static/stlye.css" />
+ <title>strongSwan management</title>
+ </head>
+ <body>
diff --git a/src/manager/templates/static/style.css b/src/manager/templates/static/style.css
new file mode 100644
index 000000000..986ae066e
--- /dev/null
+++ b/src/manager/templates/static/style.css
@@ -0,0 +1,188 @@
+html {
+ height:100%;
+ width: auto;
+ margin:0;
+ padding:0;
+}
+
+
+body {
+ font-family: Verdana, Helvetica, sans-serif;
+ font-size: 12px;
+ width: 100%;
+ height:100%;
+ margin:0;
+ padding:0;
+ background-color: #EEEEEE;
+}
+
+h1 {
+ color: #203781;
+ font-size: 18px;
+ font-weight: bold;
+}
+
+h2 {
+ color: #203781;
+ font-size: 17px;
+ font-weight: bold;
+}
+
+h3 {
+ color: #203781;
+ font-size: 16px;
+ font-weight: bold;
+}
+
+h4 {
+ color: #203781;
+ font-size: 15px;
+ font-weight: bold;
+}
+
+p {
+ line-height: 1.2;
+ font-size: 11px;
+}
+
+a {
+ color: black;
+ font-size: 12px;
+}
+
+#headermain {
+ min-height: 100%;
+ background-color: white;
+ margin-left: 188px;
+}
+
+/* ##### Header ##### */
+
+#header {
+ width: 100%;
+ height: 30px;
+ background-color: #EEEEEE;
+}
+
+.gatewayname{
+ padding-top: 5px;
+ padding-left: 30px;
+ font-size: 12px;
+}
+
+/* ##### Left Side Bar ##### */
+
+.leftSideBar {
+ padding-top: 30px;
+ padding-left: 8px;
+ padding-right: 8px;
+ width: 170px;
+ float: left;
+}
+
+.leftSideBar .sideBarTitle {
+ color: black;
+ font-weight: bold;
+ font-size: 12px;
+ margin: 0.1ex 0 0.1ex 0;
+}
+
+.leftSideBar a {
+ color: #203781;
+ text-decoration: none;
+ display: block;
+ margin: 0;
+ padding: 0.8ex 1ex;
+}
+
+.leftSideBar a:hover {
+ color: black;
+ background-color: lightgrey;
+ text-decoration: none;
+}
+
+/* ##### Main ##### */
+
+#main {
+ padding-top: 10px;
+ padding-left: 30px;
+ color: black;
+ text-align: justify;
+ line-height: 1.5em;
+}
+
+/* ##### From Selection ##### */
+
+.formbody {
+ background-color: white;
+ height: auto;
+}
+
+.formbox {
+ width: 492px;
+ margin-top: 100px;
+ margin-left: auto;
+ margin-right: auto;
+ border-color: #333;
+ border-width: 1px;
+ border-style: solid;
+ padding: 10px;
+}
+
+.formselection {
+ background-color: #EEEEEE;
+ border-color: #333;
+ border-width: 1px;
+ border-style: solid;
+}
+
+.selection {
+ background-color: white;
+ border-color: #333;
+ border-style: solid;
+ margin-left: 12px;
+ margin-right: 4px;
+ border-width: 1px;
+ width: 400px;
+}
+
+.button {
+ font-size: 12px;
+ font-weight: bold;
+ width: 50px;
+ border-color: #333;
+ border-width: 1px;
+ border-style: solid;
+ background-color: lightgrey;
+}
+
+.message {
+ color: red;
+}
+
+/* ##### Tables ##### */
+
+th {
+ padding-right: 15px;
+}
+
+td {
+ padding-right: 15px;
+}
+
+/* ##### Lists ##### */
+
+ul {
+ list-style: None;
+ padding-left: 0;
+}
+
+li {
+ padding-bottom: 5px;
+}
+
+/* ##### Labels ##### */
+
+label {
+ font-weight: bold;
+} \ No newline at end of file
diff --git a/src/manager/templates/status/ikesalist.cs b/src/manager/templates/status/ikesalist.cs
new file mode 100644
index 000000000..f9becf8d0
--- /dev/null
+++ b/src/manager/templates/status/ikesalist.cs
@@ -0,0 +1 @@
+<?cs var:xml ?>