闭社主体 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.

17 lines
860 B

  1. - content_for :page_title do
  2. Sign up
  3. = simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
  4. = render 'shared/error_messages', object: resource
  5. = f.simple_fields_for :account do |ff|
  6. = ff.input :username, autofocus: true, placeholder: 'Username', required: true, input_html: { 'aria-label' => 'Username' }
  7. = f.input :email, placeholder: 'E-mail address', required: true, input_html: { 'aria-label' => 'E-mail address' }
  8. = f.input :password, autocomplete: "off", placeholder: 'Password', required: true, input_html: { 'aria-label' => 'Password' }
  9. = f.input :password_confirmation, autocomplete: "off", placeholder: 'Confirm password', required: true, input_html: { 'aria-label' => 'Confirm password' }
  10. .actions
  11. = f.button :button, "Sign up", type: :submit
  12. .form-footer= render "auth/shared/links"