Updated forgot password and login templates

pull/2/head
Sahat Yalkabov 2014-02-17 19:44:51 -05:00
parent fcd8773518
commit 89a8b72181
2 changed files with 13 additions and 26 deletions

View File

@ -1,28 +1,15 @@
extends ../layout extends ../layout
block content block content
.container .col-sm-8.col-sm-offset-2
.row
.col-sm-6.col-sm-offset-3
br
br
form(method='POST') form(method='POST')
input(type='hidden', name='_csrf', value=token)
legend Forgot Password legend Forgot Password
div.form-group input(type='hidden', name='_csrf', value=token)
p Enter your email address and we'll send you reset instructions. .form-group
label.sr-only(for='email') Enter Your Email: p Enter your email address below and we will send you password reset instructions.
input.form-control(type='email', name='email', id='email', placeholder='Your Email', autofocus=true, required) label.control-label(for='email') Email
div.form-group input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus=true)
button.btn.btn-primary(type='submit') Reset Password .form-group
br button.btn.btn-primary(type='submit')
p Or, if you rembered your password i.fa.fa-key
a(href='login') <strong> sign in.</strong> | Reset Password
//- Form Notes
//- ===========================================
//- 1) Always add labels!
//- Screen readers will have trouble with your forms if you don't include a label for every input.
//- NOTE: you can hide the labels using the .sr-only class.
//- 2) Use proper HTML5 input types (email, password, date, etc.) This adds some HTML5 validation as
//- well as the correct keyboard on mobile devices.

View File

@ -3,8 +3,8 @@ extends ../layout
block content block content
.col-sm-8.col-sm-offset-2 .col-sm-8.col-sm-offset-2
form(method='POST') form(method='POST')
input(type='hidden', name='_csrf', value=token)
legend Sign In legend Sign In
input(type='hidden', name='_csrf', value=token)
.form-group .form-group
.btn-group.btn-group-justified .btn-group.btn-group-justified
if secrets.facebookAuth if secrets.facebookAuth