BigW Consortium Gitlab

_signup_box.html.haml 1.28 KB
Newer Older
1
.login-box
2 3 4 5 6 7
  - if signin_enabled?
    .login-heading
      %h3 New user? Create an account
  - else
    .login-heading
      %h3 Create an account
8
  .login-body
9
    - user = params[:user].present? ? params[:user] : {}
10 11 12 13
    = form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
      .devise-errors
        = devise_error_messages!
      %div
14
        = f.text_field :name, class: "form-control top", value: user[:name], placeholder: "Name", required: true
15
      %div
16
        = f.text_field :username, class: "form-control middle", value: user[:username], placeholder: "Username", required: true
17
      %div
18
        = f.email_field :email, class: "form-control middle", value: user[:email], placeholder: "Email", required: true
Douwe Maan committed
19
      .form-group.append-bottom-20#password-strength
20
        = f.password_field :password, class: "form-control bottom", value: user[:password], id: "user_password_sign_up", placeholder: "Password", required: true
21
      %div
22
      - if current_application_settings.recaptcha_enabled
23
        = recaptcha_tags
24 25
      %div
        = f.submit "Sign up", class: "btn-create btn"
26 27 28

.clearfix.prepend-top-20
  %p
29 30 31
    %span.light Didn't receive a confirmation email?
    = succeed '.' do
      = link_to "Request a new one", new_confirmation_path(resource_name)