2017-06-14 12:01:27 -04:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('settings.delete')
|
|
|
|
|
|
|
|
= simple_form_for @confirmation, url: settings_delete_path, method: :delete do |f|
|
2019-09-03 22:13:54 -04:00
|
|
|
%p.hint= t('deletes.warning.before')
|
2017-06-14 12:01:27 -04:00
|
|
|
|
2019-09-03 22:13:54 -04:00
|
|
|
%ul.hint
|
|
|
|
- if current_user.confirmed? && current_user.approved?
|
|
|
|
%li.warning-hint= t('deletes.warning.irreversible')
|
|
|
|
%li.warning-hint= t('deletes.warning.username_unavailable')
|
|
|
|
%li.warning-hint= t('deletes.warning.data_removal')
|
|
|
|
%li.warning-hint= t('deletes.warning.caches')
|
|
|
|
- else
|
|
|
|
%li.positive-hint= t('deletes.warning.email_change_html', path: edit_user_registration_path)
|
|
|
|
%li.positive-hint= t('deletes.warning.email_reconfirmation_html', path: new_user_confirmation_path)
|
|
|
|
%li.positive-hint= t('deletes.warning.email_contact_html', email: Setting.site_contact_email)
|
|
|
|
%li.positive-hint= t('deletes.warning.username_available')
|
2017-06-14 12:01:27 -04:00
|
|
|
|
2022-09-29 00:22:12 -04:00
|
|
|
%p.hint= t('deletes.warning.more_details_html', terms_path: privacy_policy_path)
|
2019-09-03 22:13:54 -04:00
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2019-09-15 15:08:39 -04:00
|
|
|
- if current_user.encrypted_password.present?
|
2022-11-17 05:05:39 -05:00
|
|
|
= f.input :password, wrapper: :with_block_label, input_html: { autocomplete: 'current-password' }, hint: t('deletes.confirm_password')
|
2019-09-15 15:08:39 -04:00
|
|
|
- else
|
2022-11-17 05:05:39 -05:00
|
|
|
= f.input :username, wrapper: :with_block_label, input_html: { autocomplete: 'off' }, hint: t('deletes.confirm_username')
|
2017-06-14 12:01:27 -04:00
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('deletes.proceed'), type: :submit, class: 'negative'
|