diff options
Diffstat (limited to 'admportal/views/pages/login.ejs')
-rw-r--r-- | admportal/views/pages/login.ejs | 45 |
1 files changed, 45 insertions, 0 deletions
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> |