From 89a8b72181d6802a9a2e253011e0c349ceb540f3 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Mon, 17 Feb 2014 19:44:51 -0500 Subject: [PATCH] Updated forgot password and login templates --- views/account/forgot.jade | 37 ++++++++++++------------------------- views/account/login.jade | 2 +- 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/views/account/forgot.jade b/views/account/forgot.jade index 06e34cf47da..70029f16b82 100644 --- a/views/account/forgot.jade +++ b/views/account/forgot.jade @@ -1,28 +1,15 @@ extends ../layout block content - .container - .row - .col-sm-6.col-sm-offset-3 - br - br - form(method='POST') - input(type='hidden', name='_csrf', value=token) - legend Forgot Password - div.form-group - p Enter your email address and we'll send you reset instructions. - label.sr-only(for='email') Enter Your Email: - input.form-control(type='email', name='email', id='email', placeholder='Your Email', autofocus=true, required) - div.form-group - button.btn.btn-primary(type='submit') Reset Password - br - p Or, if you rembered your password - a(href='login') sign in. - -//- 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. + .col-sm-8.col-sm-offset-2 + form(method='POST') + legend Forgot Password + input(type='hidden', name='_csrf', value=token) + .form-group + p Enter your email address below and we will send you password reset instructions. + label.control-label(for='email') Email + input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus=true) + .form-group + button.btn.btn-primary(type='submit') + i.fa.fa-key + | Reset Password diff --git a/views/account/login.jade b/views/account/login.jade index d309825708c..91aecaa6014 100644 --- a/views/account/login.jade +++ b/views/account/login.jade @@ -3,8 +3,8 @@ extends ../layout block content .col-sm-8.col-sm-offset-2 form(method='POST') - input(type='hidden', name='_csrf', value=token) legend Sign In + input(type='hidden', name='_csrf', value=token) .form-group .btn-group.btn-group-justified if secrets.facebookAuth