summaryrefslogtreecommitdiffstats
path: root/admportal/views/pages
diff options
context:
space:
mode:
Diffstat (limited to 'admportal/views/pages')
-rw-r--r--admportal/views/pages/csplogout.ejs47
-rw-r--r--admportal/views/pages/err.ejs33
-rw-r--r--admportal/views/pages/home.ejs33
-rw-r--r--admportal/views/pages/home.ejs.orig20
-rw-r--r--admportal/views/pages/login.ejs45
-rw-r--r--admportal/views/pages/setuplogin.ejs51
-rw-r--r--admportal/views/pages/signup.ejs45
-rw-r--r--admportal/views/pages/testdb.ejs38
8 files changed, 312 insertions, 0 deletions
diff --git a/admportal/views/pages/csplogout.ejs b/admportal/views/pages/csplogout.ejs
new file mode 100644
index 00000000..971feda6
--- /dev/null
+++ b/admportal/views/pages/csplogout.ejs
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+
+<% if (header == 'gamma') { %>
+ <title>SDN-C AdminPortal</title>
+<% } else if(header == 'sdn-mlc'){ %>
+ <title>SDNC-MLC AdminPortal</title>
+<% } else { %>
+ <title>SDN-C AdminPortal</title>
+<% } %>
+
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <% include ../partials/head %>
+</head>
+<body class="container">
+
+<div class="actions" style="padding:0px 25px;">
+<% if (header == 'gamma') { %>
+ <h2>SDN-C Admin Portal</h2>
+<% } else if(header == 'sdn-mlc'){ %>
+ <h2>SDNC-MLC Admin Portal</h2>
+<% } else { %>
+ <h2>SDN-C Admin Portal</h2>
+<% } %>
+</div>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <div class='alert alert-success' role='alert'><%=result.msg %></div>
+ <% } else { %>
+ <div class='alert alert-danger' role='danger'><%=result.msg %></div>
+ <% } %>
+ <% } %>
+<% } %>
+
+<p><a href="/login">Click here to login</a></p>
+
+
+<footer>
+ <% include ../partials/footer %>
+</footer>
+
+</body>
+</html>
diff --git a/admportal/views/pages/err.ejs b/admportal/views/pages/err.ejs
new file mode 100644
index 00000000..8ed51c6c
--- /dev/null
+++ b/admportal/views/pages/err.ejs
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>SDN-C AdminPortal</title>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <% include ../partials/head %>
+ <% include ../partials/header %>
+</head>
+<body class="container">
+
+<div class="actions" style="padding:0px 25px;">
+<h2>System Error</h2>
+</div>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <div class='alert alert-success' role='alert'><%=result.msg %></div>
+ <% } else { %>
+ <div class='alert alert-danger' role='danger'><%=result.msg %></div>
+ <% } %>
+ <% } %>
+<% } %>
+
+
+<footer>
+ <% include ../partials/footer %>
+</footer>
+
+</body>
+</html>
+
diff --git a/admportal/views/pages/home.ejs b/admportal/views/pages/home.ejs
new file mode 100644
index 00000000..3eb4a0a9
--- /dev/null
+++ b/admportal/views/pages/home.ejs
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>SDN-C AdminPortal</title>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <% include ../partials/head %>
+ <% include ../partials/header %>
+</head>
+<body class="container">
+
+<div class="actions" style="padding:0px 25px;">
+<h2>SDN-C Admin Portal</h2>
+</div>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <pre class='alert alert-success' role='alert'><%=result.msg %></pre>
+ <% } else { %>
+ <pre class='alert alert-danger' role='danger'><%=result.msg %></pre>
+ <% } %>
+ <% } %>
+<% } %>
+
+
+<footer>
+ <% include ../partials/footer %>
+</footer>
+
+</body>
+</html>
+
diff --git a/admportal/views/pages/home.ejs.orig b/admportal/views/pages/home.ejs.orig
new file mode 100644
index 00000000..353bc457
--- /dev/null
+++ b/admportal/views/pages/home.ejs.orig
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SDN-C Admin Portal</title>
+ </head>
+ <body>
+ <h1>SDN-C Admin Portal</h1>
+ <p>Welcome to SDN-C Admin Portal</p>
+<% if ( typeof loggedInAdmin != 'undefined') { %>
+ <p><%= loggedInAdmin.firstName %></p>
+<% } %>
+<% if ( typeof result != 'undefined') { %>
+ <p><%= result %></p>
+<% } %>
+<% if ( typeof errmsg != 'undefined') { %>
+ <p><%= errmsg %></p>
+<% } %>
+
+ </body>
+</html>
diff --git a/admportal/views/pages/login.ejs b/admportal/views/pages/login.ejs
new file mode 100644
index 00000000..3a3e5e4e
--- /dev/null
+++ b/admportal/views/pages/login.ejs
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <title>AdminPortal</title>
+
+
+ <!-- Bootstrap core CSS -->
+ <% include ../partials/head %>
+
+ <!-- Custom styles for this template -->
+ <link rel="stylesheet" href="/stylesheets/signin.css">
+
+ </head>
+
+ <body>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <div class='alert alert-success' role='alert'><%=result.msg %></div>
+ <% } else { %>
+ <div class='alert alert-danger' role='danger'><%=result.msg %></div>
+ <% } %>
+ <% } %>
+<% } %>
+
+ <div class="container">
+
+ <form class="form-signin" method="POST" action="/formlogin">
+ <h3 class="form-signin-heading">AdminPortal Login</h3>
+
+ <input type="text" name="email" id="email" class="form-control" placeholder="Email" required>
+ <input type="password" name="password" id="password" class="form-control" placeholder="Password" required>
+
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
+ </form>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
diff --git a/admportal/views/pages/setuplogin.ejs b/admportal/views/pages/setuplogin.ejs
new file mode 100644
index 00000000..ef75e84a
--- /dev/null
+++ b/admportal/views/pages/setuplogin.ejs
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <title>SDN-C AdminPortal</title>
+
+
+ <!-- Bootstrap core CSS -->
+ <% include ../partials/head %>
+
+ <!-- Custom styles for this template -->
+ <link rel="stylesheet" href="/stylesheets/signin.css">
+
+ </head>
+
+ <body>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <div class='alert alert-success' role='alert'><%=result.msg %></div>
+ <% } else { %>
+ <div class='alert alert-danger' role='danger'><%=result.msg %></div>
+ <% } %>
+ <% } %>
+<% } %>
+
+ <div class="container">
+
+ <form class="form-signin" method="POST" action="/formSetupLogin">
+ <h3 class="form-signin-heading">Enter Initial User Information</h3>
+
+ <label for="firstName" class="sr-only">First Name</label>
+ <input type="text" name="firstName" id="firstName" class="form-control" placeholder="First Name" required autofocus>
+
+ <label for="lastName" class="sr-only">Last Name</label>
+ <input type="text" name="lastName" id="lastName" class="form-control" placeholder="Last Name" required>
+
+ <label for="attuid" class="sr-only">ATTUID</label>
+ <input type="text" name="attuid" id="attuid" class="form-control" placeholder="ATTUID" required>
+
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Setup Login</button>
+ </form>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
diff --git a/admportal/views/pages/signup.ejs b/admportal/views/pages/signup.ejs
new file mode 100644
index 00000000..03ac7bc5
--- /dev/null
+++ b/admportal/views/pages/signup.ejs
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <title>AdminPortal</title>
+
+
+ <!-- Bootstrap core CSS -->
+ <% include ../partials/head %>
+
+ <!-- Custom styles for this template -->
+ <link rel="stylesheet" href="/stylesheets/signin.css">
+
+ </head>
+
+ <body>
+
+<% if ( typeof result != 'undefined' ) {
+ if (result.code.length > 0) {
+ if ( result.code == 'success' ) { %>
+ <div class='alert alert-success' role='alert'><%=result.msg %></div>
+ <% } else { %>
+ <div class='alert alert-danger' role='danger'><%=result.msg %></div>
+ <% } %>
+ <% } %>
+<% } %>
+
+ <div class="container">
+
+ <form class="form-signin" method="POST" action="/formSignUp">
+ <h3 class="form-signin-heading">AdminPortal Signup</h3>
+
+ <input type="email" name="nf_email" id="nf_email" class="form-control" placeholder="Email Address" required>
+ <input type="password" name="nf_password" id="nf_password" class="form-control" placeholder="Password" required>
+
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
+ </form>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
diff --git a/admportal/views/pages/testdb.ejs b/admportal/views/pages/testdb.ejs
new file mode 100644
index 00000000..837b479b
--- /dev/null
+++ b/admportal/views/pages/testdb.ejs
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>SDN-C AdminPortal</title>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <% include ../partials/head %>
+ <% include ../partials/ro_header %>
+</head>
+<body class="container">
+
+<div class="actions" style="padding:0px 25px;">
+<h2>SDN-C AdminPortal Healthcheck</h2>
+</div>
+
+<% if (typeof osObj != 'undefined')
+{ %>
+ <pre>
+ Hostname : <%= osObj.hostname %>
+ Type : <%= osObj.type %>
+ Platform : <%= osObj.platform %>
+ Architecture : <%= osObj.arch %>
+ Release : <%= osObj.release %>
+ Uptime : <%= osObj.uptime %>
+ Total Memory : <%= osObj.totalmem %>
+
+ <%= osObj.dbhealth %>
+ </pre>
+<% } %>
+
+
+<footer>
+ <% include ../partials/footer %>
+</footer>
+
+</body>
+</html>
+