aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/views/login.ejs
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-03-20 12:43:33 +0100
committerDennis Eriksen <dennis.se@gmail.com>2013-03-20 12:43:33 +0100
commit266767e6b31d4799b218a7dc9ffd0d6f2eca92a8 (patch)
treee3e68b3acdfb276cadcc23d0028a6c1dd3bc8f21 /views/login.ejs
parentEdited "Sign in" button - for fun (diff)
downloadDivid-266767e6b31d4799b218a7dc9ffd0d6f2eca92a8.tar.gz
login screen
Diffstat (limited to 'views/login.ejs')
-rw-r--r--views/login.ejs63
1 files changed, 52 insertions, 11 deletions
diff --git a/views/login.ejs b/views/login.ejs
index b938624..2997d9e 100644
--- a/views/login.ejs
+++ b/views/login.ejs
@@ -1,19 +1,60 @@
<% include header %>
+ <link rel="stylesheet" href="/css/login.css" />
</head>
<body>
+<div id="login-container">
+ <form method="post" id="login-form" class="well span4">
+ <h1>Hello!</h1>
+ <p class="subheading">Please Login To Your Account</p>
+ <label>Username </label>
+ <input type="text" name="user" id="user-tf" class="span4 required">
+ <label>Password</label>
+ <input type="password" name="pass" id="pass-tf" class="span4 required">
+ <button type="submit" id="btn-login" class="btn btn-primary"><i class="icon-lock icon-white"></i>Sign in</button>
+ <label id="remember-me" class="checkbox">Remember Me
+ <input type="checkbox" checked="checked">
+ </label>
+ <div class="clear-fix"></div>
+ <hr>
+ <div class="btm-links"><a href="#" id="forgot-password">Forgot Your Password? </a><a href="/signup" id="create-account">Create An Account</a></div>
+ </form>
+</div>
+<div class="modal-alert modal hide fade">
+ <div class="modal-header">
+ <button data-dismiss="modal" class="close">x</button>
+ <h3></h3>
+ </div>
+ <div class="modal-body">
+ <p></p>
+ </div>
+ <div class="modal-footer">
+ <button data-dismiss="modal" id="ok" class="btn btn-warning">OK</button>
+ </div>
+</div>
+<div id="get-credentials" class="modal-single-input modal hide fade">
+ <div class="modal-header">
+ <button data-dismiss="modal" class="close">x</button>
+ <h3>Retrieve Password</h3>
+ </div>
+ <div class="modal-body">
+ <form method="post" id="get-credentials-form" class="well span5">
+ <p>Please enter the email address associated with your account</p>
+ <input type="text" name="email" id="email-tf" class="span5 required">
+ <button type="submit" id="submit" class="btn btn-primary">Submit</button>
+ <button data-dismiss="modal" id="cancel" class="btn">Cancel</button>
+ <div class="alert alert-error hide"></div>
+ <button data-dismiss="alert" class="close"></button>
+ </form>
+ </div>
+ <div class="modal-footer"></div>
+</div>
- <div class="container">
- <form class="form-signin">
- <h2 class="form-signin-heading">Please sign in</h2>
- <input type="text" class="input-block-level" placeholder="Email address">
- <input type="password" class="input-block-level" placeholder="Password">
- <label class="checkbox">
- <input type="checkbox" value="remember-me"> Remember me
- </label>
- <button class="btn btn-primary" type="submit">Sign in</button>
- </form>
- </div> <!-- /container -->
+<script src="/js/views/login.js"></script>
+<script src="/js/jquery.form.js"></script>
+<script src="/js/controllers/loginController.js"></script>
+<script src="/js/form-validators/loginValidator.js"></script>
+<script src="/js/form-validators/emailValidator.js"></script>
<% include footer %>