Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Last active November 10, 2015 05:14
Show Gist options
  • Save yamaaki/5db82f4d0e07388d482b to your computer and use it in GitHub Desktop.
Save yamaaki/5db82f4d0e07388d482b to your computer and use it in GitHub Desktop.
#admin-members-form
= form_for [:admin, @member] do |f|
.row
.input-field.col.s12.l9
i.material-icons.prefix email
= f.email_field :email, class: 'validate'
= f.label :email
.row
.input-field.col.s12.l9
i.material-icons.prefix lock_outline
= f.password_field :password, autocomplete: 'off', class: 'validate'
- if is_edit_page
= f.label :password, Member.human_attribute_name(:password) + ' - Reave blank if there is no need to changes.'
- else
= f.label :password
.row
.col.s12
.section
= button_tag class: 'btn waves-effect waves-light' do
i.material-icons.left.u-slim send
span Send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment