BigW Consortium Gitlab

_signup_box.html.haml 1.91 KB
Newer Older
1
#register-pane.tab-pane.login-box{ role: 'tabpanel' }
2
  .login-body
3
    = form_for(resource, as: "new_#{resource_name}", url: registration_path(resource_name), html: { class: "new_new_user gl-show-field-errors", "aria-live" => "assertive" }) do |f|
4 5
      .devise-errors
        = devise_error_messages!
6
      .form-group
7
        = f.label :name, 'Full name'
8
        = f.text_field :name, class: "form-control top", required: true, title: "This field is required."
9
      .username.form-group
10
        = f.label :username
11
        = f.text_field :username, class: "form-control middle", pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, required: true, title: 'Please create a username with only alphanumeric characters.'
12 13 14
        %p.validation-error.hide Username is already taken.
        %p.validation-success.hide Username is available.
        %p.validation-pending.hide Checking username availability...
15
      .form-group
16 17
        = f.label :email
        = f.email_field :email, class: "form-control middle", required: true, title: "Please provide a valid email address."
18
      .form-group
19 20
        = f.label :email_confirmation
        = f.email_field :email_confirmation, class: "form-control middle", required: true, title: "Please retype the email address."
Douwe Maan committed
21
      .form-group.append-bottom-20#password-strength
22 23 24
        = f.label :password
        = f.password_field :password, class: "form-control bottom", required: true, pattern: ".{#{@minimum_password_length},}", title: "Minimum length is #{@minimum_password_length} characters."
        %p.gl-field-hint Minimum length is #{@minimum_password_length} characters
25
      %div
26
      - if Gitlab::Recaptcha.enabled?
27
        = recaptcha_tags
28
      .submit-container
29
        = f.submit "Register", class: "btn-register btn"
30
.clearfix.submit-container
31
  %p
32 33
    %span.light Didn't receive a confirmation email?
    = succeed '.' do
34
      = link_to "Request a new one", new_confirmation_path(:user)