Skip to content

Commit

Permalink
feat(password): update the password recovery page (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybakanovsky committed Aug 31, 2023
1 parent cb92fea commit acd4268
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/views/devise/passwords/new.html.erb

This file was deleted.

17 changes: 17 additions & 0 deletions app/views/devise/passwords/new.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.columns.is-centered
.column.is-one-third
h2.title.is-4.has-text-centered Forgot your password?
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= render "devise/shared/error_messages", resource: resource
.field
= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "email"
br
.actions
div.is-fullwidth
= f.submit 'Send me reset password instructions', class: "button is-info is-fullwidth"
br
.columns
.column.is-one-quarters
= link_to t(".sign_in"), new_session_path(resource_name)
.column.is-flex.is-justify-content-flex-end
= link_to t(".sign_up"), new_registration_path(resource_name)

0 comments on commit acd4268

Please sign in to comment.