aboutsummaryrefslogtreecommitdiffstats
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.ejs32
-rw-r--r--admportal/views/pages/home.ejs33
-rw-r--r--admportal/views/pages/home.ejs.orig20
-rw-r--r--admportal/views/pages/login.ejs46
-rw-r--r--admportal/views/pages/setuplogin.ejs51
-rw-r--r--admportal/views/pages/signup.ejs46
-rw-r--r--admportal/views/pages/testdb.ejs38
8 files changed, 0 insertions, 313 deletions
diff --git a/admportal/views/pages/csplogout.ejs b/admportal/views/pages/csplogout.ejs
deleted file mode 100644
index 971feda6..00000000
--- a/admportal/views/pages/csplogout.ejs
+++ /dev/null
@@ -1,47 +0,0 @@
-<!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
deleted file mode 100644
index cf5c3004..00000000
--- a/admportal/views/pages/err.ejs
+++ /dev/null
@@ -1,32 +0,0 @@
-<!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 %>
-</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
deleted file mode 100644
index 3eb4a0a9..00000000
--- a/admportal/views/pages/home.ejs
+++ /dev/null
@@ -1,33 +0,0 @@
-<!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
deleted file mode 100644
index 353bc457..00000000
--- a/admportal/views/pages/home.ejs.orig
+++ /dev/null
@@ -1,20 +0,0 @@
-<!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
deleted file mode 100644
index 9da2f31d..00000000
--- a/admportal/views/pages/login.ejs
+++ /dev/null
@@ -1,46 +0,0 @@
-<!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="hidden" name="_csrf" value="<%= csrfToken %>" />
- <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
deleted file mode 100644
index ef75e84a..00000000
--- a/admportal/views/pages/setuplogin.ejs
+++ /dev/null
@@ -1,51 +0,0 @@
-<!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
deleted file mode 100644
index 2a039531..00000000
--- a/admportal/views/pages/signup.ejs
+++ /dev/null
@@ -1,46 +0,0 @@
-<!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="hidden" name="_csrf" value="<%= csrfToken %>" />
- <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
deleted file mode 100644
index 837b479b..00000000
--- a/admportal/views/pages/testdb.ejs
+++ /dev/null
@@ -1,38 +0,0 @@
-<!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>
-