闭社主体 forked from https://github.com/tootsuite/mastodon
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.

28 lines
1.2 KiB

  1. = simple_form_for(new_user, url: user_registration_path) do |f|
  2. = f.simple_fields_for :account do |account_fields|
  3. .input-with-append
  4. = account_fields.input :username,
  5. autofocus: true,
  6. placeholder: t('simple_form.labels.defaults.username'),
  7. required: true,
  8. input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
  9. .append
  10. = "@#{site_hostname}"
  11. = f.input :email,
  12. placeholder: t('simple_form.labels.defaults.email'),
  13. required: true,
  14. input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
  15. = f.input :password,
  16. placeholder: t('simple_form.labels.defaults.password'),
  17. required: true,
  18. input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }
  19. = f.input :password_confirmation,
  20. placeholder: t('simple_form.labels.defaults.confirm_password'),
  21. required: true,
  22. input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }
  23. .actions
  24. = f.button :button, t('auth.register'), type: :submit, class: 'button button-alternative'
  25. %p.hint.subtle-hint=t('auth.agreement_html', rules_path: about_more_path, terms_path: terms_path)