闭社主体 forked from https://github.com/tootsuite/mastodon
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.

20 lines
670 B

  1. - content_for :page_title do
  2. = t('auth.setup.title')
  3. - if missing_email?
  4. = simple_form_for(@user, url: auth_setup_path) do |f|
  5. = render 'shared/error_messages', object: @user
  6. .fields-group
  7. %p.hint= t('auth.setup.email_below_hint_html')
  8. .fields-group
  9. = f.input :email, required: true, hint: false, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }
  10. .actions
  11. = f.submit t('admin.accounts.change_email.label'), class: 'button'
  12. - else
  13. .simple_form
  14. %p.hint= t('auth.setup.email_settings_hint_html', email: content_tag(:strong, @user.email))
  15. .form-footer= render 'auth/shared/links'