edit.html.haml 673 B

12345678910111213141516171819
  1. %h2 Change your password
  2. = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
  3. = devise_error_messages!
  4. = f.hidden_field :reset_password_token
  5. .field
  6. = f.label :password, "New password"
  7. %br/
  8. - if @minimum_password_length
  9. %em
  10. (#{@minimum_password_length} characters minimum)
  11. %br/
  12. = f.password_field :password, autofocus: true, autocomplete: "new-password"
  13. .field
  14. = f.label :password_confirmation, "Confirm new password"
  15. %br/
  16. = f.password_field :password_confirmation, autocomplete: "off"
  17. .actions
  18. = f.submit "Change my password"
  19. = render "devise/shared/links"