]> cat aescling's git repositories - mastodon.git/blob - app/views/auth/registrations/edit.html.haml
Add (back) option to set redirect notice on account without moving followers (#11994)
[mastodon.git] / app / views / auth / registrations / edit.html.haml
1 - content_for :page_title do
2 = t('settings.account_settings')
3
4 = render 'status'
5
6 %h3= t('auth.security')
7
8 = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: 'auth_edit' }) do |f|
9 = render 'shared/error_messages', object: resource
10
11 - if !use_seamless_external_login? || resource.encrypted_password.present?
12 .fields-row
13 .fields-row__column.fields-group.fields-row__column-6
14 = f.input :email, wrapper: :with_label, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }, required: true, disabled: current_account.suspended?
15 .fields-row__column.fields-group.fields-row__column-6
16 = f.input :current_password, wrapper: :with_label, input_html: { 'aria-label' => t('simple_form.labels.defaults.current_password'), :autocomplete => 'off' }, required: true, disabled: current_account.suspended?, hint: false
17
18 .fields-row
19 .fields-row__column.fields-group.fields-row__column-6
20 = f.input :password, wrapper: :with_label, label: t('simple_form.labels.defaults.new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.new_password'), :autocomplete => 'off' }, hint: t('simple_form.hints.defaults.password'), disabled: current_account.suspended?
21 .fields-row__column.fields-group.fields-row__column-6
22 = f.input :password_confirmation, wrapper: :with_label, label: t('simple_form.labels.defaults.confirm_new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_new_password'), :autocomplete => 'off' }, disabled: current_account.suspended?
23
24 .actions
25 = f.button :button, t('generic.save_changes'), type: :submit, class: 'button', disabled: current_account.suspended?
26 - else
27 %p.hint= t('users.seamless_external_login')
28
29 %hr.spacer/
30
31 = render 'sessions'
32
33 %hr.spacer/
34
35 %h3= t('auth.migrate_account')
36 %p.muted-hint= t('auth.migrate_account_html', path: settings_migration_path)
37
38 %hr.spacer/
39
40 %h3= t('migrations.incoming_migrations')
41 %p.muted-hint= t('migrations.incoming_migrations_html', path: settings_aliases_path)
42
43 - if open_deletion? && !current_account.suspended?
44 %hr.spacer/
45
46 %h3= t('auth.delete_account')
47 %p.muted-hint= t('auth.delete_account_html', path: settings_delete_path)
This page took 0.070935 seconds and 4 git commands to generate.