You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.3 KiB

  1. - content_for :page_title do
  2. = t('settings.delete')
  3. = simple_form_for @confirmation, url: settings_delete_path, method: :delete do |f|
  4. %p.hint= t('deletes.warning.before')
  5. %ul.hint
  6. - if current_user.confirmed? && current_user.approved?
  7. %li.warning-hint= t('deletes.warning.irreversible')
  8. %li.warning-hint= t('deletes.warning.username_unavailable')
  9. %li.warning-hint= t('deletes.warning.data_removal')
  10. %li.warning-hint= t('deletes.warning.caches')
  11. - else
  12. %li.positive-hint= t('deletes.warning.email_change_html', path: edit_user_registration_path)
  13. %li.positive-hint= t('deletes.warning.email_reconfirmation_html', path: new_user_confirmation_path)
  14. %li.positive-hint= t('deletes.warning.email_contact_html', email: Setting.site_contact_email)
  15. %li.positive-hint= t('deletes.warning.username_available')
  16. %p.hint= t('deletes.warning.more_details_html', terms_path: terms_path)
  17. %hr.spacer/
  18. - if current_user.encrypted_password.present?
  19. = f.input :password, wrapper: :with_block_label, input_html: { :autocomplete => 'off' }, hint: t('deletes.confirm_password')
  20. - else
  21. = f.input :username, wrapper: :with_block_label, input_html: { :autocomplete => 'off' }, hint: t('deletes.confirm_username')
  22. .actions
  23. = f.button :button, t('deletes.proceed'), type: :submit, class: 'negative'