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

25 lines
973 B
Plaintext

- provide(:title, generate_title(t(".title")))
.container
.row
.col-sm-8.offset-sm-2
.card.mt-3
.card-body
%h1= t(".title")
= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), data: { turbo: false }) do |f|
= render "devise/shared/error_messages", resource: resource
= render "layouts/messages"
= f.text_field :screen_name, autofocus: true, autocomplete: :username
= f.email_field :email, autofocus: false, autocomplete: :email
= f.password_field :password, autocomplete: "new-password"
= f.password_field :password_confirmation, autocomplete: "new-password"
- if APP_CONFIG.dig(:hcaptcha, :enabled)
= hcaptcha_tags theme: :light
%p= raw t(".info", terms: link_to(t("voc.terms"), terms_path))
= f.primary
= render "devise/shared/links"
= render "shared/links"