Tidy up forgot password page

This commit is contained in:
Brenda Wallace
2019-04-21 14:01:45 +12:00
parent ba3ee3a9f0
commit 730c2b79f7
3 changed files with 16 additions and 19 deletions

View File

@@ -346,9 +346,9 @@ ul.thumbnail-buttons
.navbar .navbar-form
width: 250px
.login-page
.form-page
text-align: center
.login-card
.form-card
max-width: 500px
text-align: center
display: inline-block

View File

@@ -1,19 +1,16 @@
- content_for :title, "Forgot your password?"
= form_for(resource, as: resource_name,
url: password_path(resource_name),
html: { method: :post,
class: 'form-horizontal', role: 'form' }) do |f|
= devise_error_messages!
.form-page
%section.card.form-card
%h2 Forgot your password?
= form_for(resource, as: resource_name,
url: password_path(resource_name),
html: { method: :post,
class: 'text-center border border-light p-5', role: 'form' }) do |f|
= devise_error_messages!
.form-group
= f.label :login, class: 'control-label col-md-2'
.col-md-8
= f.text_field :login, class: 'form-control'
.form-group
.form-actions.col-md-offset-2.col-md-8
= f.text_field :login, class: "form-control mb-4", placeholder: "E-mail", type: "email"
= f.submit "Send me reset password instructions", class: 'btn btn-primary'
.form-group
.col-md-offset-2.col-md-8
= render "devise/shared/links"
.form-group
.col-md-offset-2.col-md-8
= render "devise/shared/links"

View File

@@ -1,6 +1,6 @@
.login-page
%section.card.login-card
.form-page
%section.card.form-card
%h1 Sign in
= form_for(resource, as: resource_name,
url: session_path(resource_name),