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.1 KiB

  1. = simple_form_for(new_user, url: user_registration_path) do |f|
  2. = f.simple_fields_for :account do |account_fields|
  3. = account_fields.input :username,
  4. autofocus: true,
  5. placeholder: t('simple_form.labels.defaults.username'),
  6. required: true,
  7. input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
  8. = f.input :email,
  9. placeholder: t('simple_form.labels.defaults.email'),
  10. required: true,
  11. input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
  12. = f.input :password,
  13. autocomplete: 'off',
  14. placeholder: t('simple_form.labels.defaults.password'),
  15. required: true,
  16. input_html: { 'aria-label' => t('simple_form.labels.defaults.password') }
  17. = f.input :password_confirmation,
  18. autocomplete: 'off',
  19. placeholder: t('simple_form.labels.defaults.confirm_password'),
  20. required: true,
  21. input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password') }
  22. .actions
  23. = f.button :button, t('about.get_started'), type: :submit
  24. .info
  25. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  26. ·
  27. = link_to t('about.about_this'), about_more_path