Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(password): update the password recovery page #48

Merged
merged 1 commit into from
Aug 31, 2023
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
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)