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.

30 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. autocomplete: 'off',
  17. placeholder: t('simple_form.labels.defaults.password'),
  18. required: true,
  19. input_html: { 'aria-label' => t('simple_form.labels.defaults.password') }
  20. = f.input :password_confirmation,
  21. autocomplete: 'off',
  22. placeholder: t('simple_form.labels.defaults.confirm_password'),
  23. required: true,
  24. input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password') }
  25. .actions
  26. = f.button :button, t('auth.register'), type: :submit, class: 'button button-alternative'
  27. %p.hint.subtle-hint=t('auth.agreement_html', rules_path: about_more_path, terms_path: terms_path)