logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

edit.html.haml (956B)


  1. - content_for :page_title do
  2. = t('auth.set_new_password')
  3. = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
  4. = render 'shared/error_messages', object: resource
  5. - if !use_seamless_external_login? || resource.encrypted_password.present?
  6. = f.input :reset_password_token, as: :hidden
  7. = f.input :password, autofocus: true, placeholder: t('simple_form.labels.defaults.new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.new_password'), :autocomplete => 'off' }
  8. = f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_new_password'), :autocomplete => 'off' }
  9. .actions
  10. = f.button :button, t('auth.set_new_password'), type: :submit
  11. - else
  12. %p.hint= t('users.seamless_external_login')
  13. .form-footer= render 'auth/shared/links'