|
1 | 1 | = simple_form_for(new_user, url: user_registration_path) do |f| |
2 | | - %p.lead= t('about.federation_hint_html', instance: content_tag(:strong, site_hostname)) |
| 2 | + .simple_form__overlay-area |
| 3 | + %p.lead= t('about.federation_hint_html', instance: content_tag(:strong, site_hostname)) |
3 | 4 |
|
4 | | - .fields-group |
5 | | - = f.simple_fields_for :account do |account_fields| |
6 | | - = account_fields.input :username, wrapper: :with_label, autofocus: true, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username') }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations? |
| 5 | + .fields-group |
| 6 | + = f.simple_fields_for :account do |account_fields| |
| 7 | + = account_fields.input :username, wrapper: :with_label, autofocus: true, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username') }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations? |
7 | 8 |
|
8 | | - = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
9 | | - = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
10 | | - = f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
| 9 | + = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
| 10 | + = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
| 11 | + = f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? |
11 | 12 |
|
12 | | - .fields-group |
13 | | - = f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', rules_path: about_more_path, terms_path: terms_path), disabled: closed_registrations? |
| 13 | + .fields-group |
| 14 | + = f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', rules_path: about_more_path, terms_path: terms_path), disabled: closed_registrations? |
14 | 15 |
|
15 | | - .actions |
16 | | - = f.button :button, sign_up_message, type: :submit, class: 'button button-primary', disabled: closed_registrations? |
| 16 | + .actions |
| 17 | + = f.button :button, sign_up_message, type: :submit, class: 'button button-primary', disabled: closed_registrations? |
| 18 | + |
| 19 | + - if closed_registrations? && @instance_presenter.closed_registrations_message.present? |
| 20 | + .simple_form__overlay-area__overlay |
| 21 | + .simple_form__overlay-area__overlay__content.rich-formatting |
| 22 | + .block-icon= fa_icon 'warning' |
| 23 | + = @instance_presenter.closed_registrations_message.html_safe |
0 commit comments