Login page redesign

pull/2/head
Sahat Yalkabov 2013-12-11 20:26:53 -05:00
parent d73e615362
commit 5ce2730256
2 changed files with 30 additions and 25 deletions

View File

@ -1,7 +1,15 @@
extends layout
block content
if error.length
.alert.alert-danger
p= error
if success.length
.alert.alert-success
p= success
h2.text-center Contact Form
.center-block
form.form-horizontal(role='form', method='POST')
.form-group
@ -21,9 +29,4 @@ block content
button.btn.btn-success(type='submit') Send
img.pull-right(height='34', src='/img/sendgrid.png')
if error.length
.alert.alert-danger
p= error
if success.length
.alert.alert-success
p= success

View File

@ -4,9 +4,25 @@ block content
if messages.length
.alert.alert-danger
strong= messages
.page-header
h2 Login
h2.text-center Login
form.form-horizontal(method='POST')
.form-group
label.col-sm-2.control-label(for='username') Email
.col-sm-8
input.form-control(type='text', name='username', id='username', placeholder='Email', autofocus='')
.form-group
label.col-sm-2.control-label(for='username') Password
.col-sm-8
.input-group
input.form-control(type='password', name='password', id='password', placeholder='Password')
span.input-group-btn
button.btn.btn-primary(type='button') Go!
.help-block
a.pull-right(href='#') Forgot password?
.form-group
.col-sm-offset-2.col-sm-8
.btn-group.btn-group-justified
@ -16,23 +32,9 @@ block content
a.btn.btn-sm.btn-info.twitter(href='/auth/twitter')
i.fa.fa-twitter
| Twitter
a.btn.btn-sm.btn-danger.google(href='/auth/google')
i.fa.fa-google-plus
| Google
a.btn.btn-sm.btn-default.github(href='/auth/github')
i.fa.fa-github
| GitHub
.form-group
label.col-sm-2.control-label(for='username') Email
.col-sm-8
input.form-control(type='text', name='username', id='username', placeholder='Email', autofocus='', required='')
.form-group
label.col-sm-2.control-label(for='username') Password
.col-sm-8
input.form-control(type='password', name='password', id='password', placeholder='Password', required='')
.help-block
a.pull-right(href='#') Forgot password?
.form-group
.col-sm-offset-2.col-sm-8
button.btn.btn-success(type='submit') Login
a.btn.btn-sm.btn-danger.google(href='/auth/google')
i.fa.fa-google-plus
| Google