-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b8170
commit 4e51969
Showing
4 changed files
with
34 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.columns.is-centered | ||
.column.is-one-third | ||
h2.title.is-4.has-text-centered My profile | ||
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| | ||
= render "devise/shared/error_messages", resource: resource | ||
.field | ||
= f.text_field :name, autofocus: true, type: "text", class: 'input', placeholder: "your name or nick name" | ||
.field | ||
= f.email_field :email, autocomplete: "email", placeholder: "email" | ||
.field | ||
= f.password_field :password, autocomplete: "new-password", placeholder: "password (leave blank if you don't want to change it)" | ||
- if @minimum_password_length | ||
p.help | ||
| (#{@minimum_password_length} characters minimum) | ||
.field | ||
= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "password confirmation" | ||
.field | ||
= f.password_field :current_password, autocomplete: "current-password", placeholder: "current password" | ||
p.help | ||
| (we need your current password to confirm your changes) | ||
.actions | ||
.columns | ||
.column.is-three-quarters | ||
= f.submit "Update", class: "button is-primary" | ||
.column.is-flex.is-justify-content-flex-end | ||
= link_to 'Back', request.referer.present? && request.referer != edit_user_registration_path ? request.referer : root_path, class: 'button is-link' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters