about summary refs log tree commit diff
path: root/app/views/auth/setup/show.html.haml
blob: 8bb44ca7f79c81f931e5e08df2c49a299b7c040f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- content_for :page_title do
  = t('auth.setup.title')

- if missing_email?
  = simple_form_for(@user, url: auth_setup_path) do |f|
    = render 'shared/error_messages', object: @user

    .fields-group
      %p.hint= t('auth.setup.email_below_hint_html')

    .fields-group
      = f.input :email, required: true, hint: false, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }

    .actions
      = f.submit t('admin.accounts.change_email.label'), class: 'button'
- else
  .simple_form
    %p.hint= t('auth.setup.email_settings_hint_html', email: content_tag(:strong, @user.email))

.form-footer
  %ul.no-list
    %li= link_to t('settings.account_settings'), edit_user_registration_path
    %li= link_to t('auth.logout'), destroy_user_session_path, data: { method: :delete }