Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/stylesheets/forms/_forms.sass
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ hr
padding-right: 5px

// custom styles
.form-container.login, .form-container.signup
.form-container.login, .form-container.signup, .form-container.password
max-width: 360px
.btn
margin-bottom: 30px
Expand Down
21 changes: 12 additions & 9 deletions app/views/devise/passwords/_form.html.haml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.form-container
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= f.error_notification
.form-inputs
= f.input :email, required: true, autofocus: true
.center
.form-actions
= f.button :submit, "Send Reset Instructions"
= render "devise/shared/links"
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= f.error_notification
.form-inputs
= f.input :email, required: true, autofocus: true
.form-actions.right
= f.button :submit, "Send Reset Instructions"
%p.session-link
Remembered it?
= link_to "Sign in!".html_safe, new_user_session_path
%p.session-link
No account?
= link_to "Register!".html_safe, new_user_registration_path
10 changes: 6 additions & 4 deletions app/views/devise/passwords/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- title 'Change Password'
.form-container
.section-title
.form-container.password
.section-title.center
Change Your
%span.emphasized Password
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
Expand All @@ -10,6 +10,8 @@
.form-inputs
= f.input :password, label: "New Password", required: true, autofocus: true
= f.input :password_confirmation, label: "Confirm", required: true
.form-actions
.form-actions.right
= f.button :submit, "Change My Password"
= render "devise/shared/links"
%p.session-link
Remembered it?
= link_to "Sign in!".html_safe, new_user_session_path
4 changes: 2 additions & 2 deletions app/views/devise/passwords/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- title 'Password Reset'
.form-container
%h1.section-title
.form-container.password
%h1.section-title.center
Reset Your
%span.emphasized Password

Expand Down