.row.login-form

.col.s12.offset-m3
  .card.hoverable
    .card-content
      span.card-title.center
        | Edit
        | \#{resource_name.to_s.humanize}
      .divider
      = form_for resource, as: resource_name,
      | url: registration_path(resource_name), html: { method: :put } do |f|
      - if devise_error_messages? || alert || (devise_mapping.confirmable? && resource.pending_reconfirmation?)
        .form-errors.red.lighten-1
          = devise_error_messages!
          = alert
          | Currently waiting confirmation for:
          | \#{resource.unconfirmed_email}
      .form-inputs.row
        .input-field.col.s12
          i.material-icons.prefix email
          = f.email_field :email, autofocus: true
          = f.label :email
        .input-field.col.s12
          = f.password_field :password, autocomplete: "off"
          = f.label :password,
          | "Password (leave blank if you don't want to change it)"
          span.hint-text
            = @minimum_password_length
            | Characters Minimum
        .input-field.col.s12
          = f.password_field :password_confirmation, autocomplete: "off"
          = f.label :password_confirmation
        .input-field.col.s12
          = f.password_field :current_password, autocomplete: "off"
          = f.label :current_password
          span.hint-text
            | we need your current password to confirm your changes
      .form-actions.center
        = f.button :submit, "Update", class: "btn waves-effect"
    .card-action.center
      = render "devise/shared/links"