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.

23 lines
821 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
  16. %ul.no-list
  17. %li= link_to t('settings.account_settings'), edit_user_registration_path
  18. %li= link_to t('auth.logout'), destroy_user_session_path, data: { method: :delete }