Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Last active October 6, 2015 10:03
Show Gist options
  • Save yamaaki/aaad1f81e76d03825f9b to your computer and use it in GitHub Desktop.
Save yamaaki/aaad1f81e76d03825f9b to your computer and use it in GitHub Desktop.
- unless resource.errors.empty?
= devise_error_messages!
#member-members-registrations-edit
.row
.col.s12.m9
.section
#p-title.col.s12.scrollspy
h2.u-title Edit Profile
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
.input-field.col.s12.l9
i.material-icons.prefix email
= f.email_field :email, class: 'validate'
= f.label :email
.input-field.col.s12.l9
i.material-icons.prefix lock_outline
= f.password_field :password, autocomplete: 'off', class: 'validate'
= f.label :password, Member.human_attribute_name(:password) + ' - Reave blank if there is no need to changes.'
.input-field.col.s12.l9
i.material-icons.prefix lock_outline
= f.password_field :password_confirmation, autocomplete: 'off', class: 'validate'
= f.label :password_confirmation
.input-field.col.s12.l9
i.material-icons.prefix lock_open
= f.password_field :current_password, autocomplete: 'off', class: 'validate'
= f.label :current_password
.col.s12
.section
= button_tag class: 'btn waves-effect waves-light' do
i.material-icons.left.u-slim send
span Send
.section
#p-cancel.col.s12.scrollspy
h4.u-title Quit
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :delete }) do |f|
.col.s12
| No need to sing in this account?
.col.s12
.section
= button_tag class: 'btn waves-effect waves-light', data: { confirm: 'Are you sure to quit?' } do
i.material-icons.left.u-slim send
span Quit
.col.hide-on-small-only.m3
ul.section.table-of-contents.u-right-nav
li = link_to 'Edit Profile', '#p-title'
li = link_to 'Quit', '#p-cancel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment