Retrospring/app/views/devise/registrations/new.haml

27 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-05-10 04:45:48 -07:00
- provide(:title, generate_title('Sign Up'))
2014-08-01 06:27:08 -07:00
.container
2020-05-06 12:56:10 -07:00
.row
.col-sm-8.offset-sm-2
.card.mt-3
.card-body
%h1= t('views.sessions.new')
= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
2020-05-22 14:33:30 -07:00
= render 'devise/shared/error_messages', resource: resource
= render 'layouts/messages'
2014-08-01 06:27:08 -07:00
2020-05-06 12:56:10 -07:00
= f.text_field :screen_name, autofocus: true, label: t('views.settings.account.username')
= f.email_field :email, autofocus: false, label: t('views.settings.account.email'),
help: "Don't forget to check your spam folder in case our mail might have landed there!"
2014-08-01 06:27:08 -07:00
2020-05-10 13:27:39 -07:00
= f.password_field :password, autocomplete: :off, label: t('views.settings.account.password')
= f.password_field :password_confirmation, autocomplete: :off, label: t('views.settings.account.password_confirm')
2014-08-01 06:27:08 -07:00
2020-05-22 13:42:10 -07:00
- if APP_CONFIG.dig(:hcaptcha, :enabled)
= hcaptcha_tags
2020-05-22 13:29:22 -07:00
2020-05-06 12:56:10 -07:00
%p= raw t('views.sessions.info', terms: link_to(t('views.general.terms'), terms_path))
2020-05-10 04:45:48 -07:00
= f.submit 'Sign up', class: 'btn btn-primary mb-3'
2014-08-01 06:27:08 -07:00
2020-05-10 04:45:48 -07:00
= render 'devise/shared/links'
2014-11-25 04:58:20 -08:00
= render 'shared/links'