show.html.haml 1.3 KB

1234567891011121314151617181920212223242526272829
  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: privacy_policy_path)
  17. %hr.spacer/
  18. - if current_user.encrypted_password.present?
  19. = f.input :password, wrapper: :with_block_label, input_html: { autocomplete: 'current-password' }, 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'