2013-12-26 03:04:26 +00:00
|
|
|
doctype html
|
2013-12-12 20:48:23 +00:00
|
|
|
html(lang="en")
|
|
|
|
head
|
|
|
|
include head
|
2016-07-07 08:11:56 +00:00
|
|
|
+head()
|
2013-12-12 20:48:23 +00:00
|
|
|
body
|
|
|
|
#wrap
|
|
|
|
nav.navbar.navbar-inverse.navbar-fixed-top(role="navigation")
|
|
|
|
include nav
|
2016-07-07 08:11:56 +00:00
|
|
|
+navheader()
|
2013-12-12 20:48:23 +00:00
|
|
|
#nav-collapsible.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav
|
2016-07-07 08:11:56 +00:00
|
|
|
+navdefaultlinks("/login")
|
2013-12-12 20:48:23 +00:00
|
|
|
if loggedIn
|
2016-07-07 08:11:56 +00:00
|
|
|
+navlogoutform("/")
|
2013-12-12 20:48:23 +00:00
|
|
|
section#mainpage.container
|
|
|
|
if wasAlreadyLoggedIn
|
|
|
|
.col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
|
|
|
|
.alert.alert-info.messagebox.center
|
|
|
|
h3(style="margin: 5px auto") Logged in as #{loginName}
|
|
|
|
else if !loggedIn
|
|
|
|
.col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
|
|
|
|
if loginError
|
|
|
|
.alert.alert-danger.messagebox.center
|
|
|
|
strong Login Failed
|
|
|
|
p= loginError
|
|
|
|
h2 Login
|
|
|
|
form(role="form", action="/login", method="post")
|
2015-02-23 00:15:22 +00:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2013-12-27 16:08:03 +00:00
|
|
|
if redirect
|
2015-02-16 03:56:00 +00:00
|
|
|
input(type="hidden", name="dest", value=redirect)
|
2013-12-12 20:48:23 +00:00
|
|
|
.form-group
|
|
|
|
label(for="username") Username
|
|
|
|
input#username.form-control(type="text", name="name")
|
|
|
|
.form-group
|
|
|
|
label(for="password") Password
|
|
|
|
input#password.form-control(type="password", name="password")
|
2014-02-01 19:03:08 +00:00
|
|
|
a(href="/account/passwordreset") Forgot password?
|
2015-02-07 21:13:28 +00:00
|
|
|
.form-group
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input(type="checkbox", name="remember")
|
|
|
|
| Remember me
|
2013-12-12 20:48:23 +00:00
|
|
|
button.btn.btn-success.btn-block(type="submit") Login
|
|
|
|
else
|
|
|
|
.col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
|
|
|
|
.alert.alert-success.messagebox.center
|
|
|
|
strong Login Successful
|
|
|
|
p Logged in as #{loginName}
|
|
|
|
if redirect
|
|
|
|
br
|
|
|
|
a(href=redirect) Return to previous page
|
|
|
|
include footer
|
2016-07-07 08:11:56 +00:00
|
|
|
+footer()
|