2016-12-22 06:00:09 -05:00
|
|
|
#register-pane.tab-pane.login-box{ role: 'tabpanel' }
|
2015-01-07 20:07:36 -05:00
|
|
|
.login-body
|
2016-11-02 06:35:21 -04:00
|
|
|
= 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|
|
2015-01-07 20:07:36 -05:00
|
|
|
.devise-errors
|
|
|
|
= devise_error_messages!
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2017-03-09 17:40:17 -05:00
|
|
|
= f.label :name, 'Full name'
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.text_field :name, class: "form-control top", required: true, title: "This field is required."
|
2016-12-23 04:37:12 -05:00
|
|
|
.username.form-group
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.label :username
|
2017-05-24 16:59:26 -04:00
|
|
|
= 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.'
|
2016-09-09 08:21:00 -04:00
|
|
|
%p.validation-error.hide Username is already taken.
|
|
|
|
%p.validation-success.hide Username is available.
|
|
|
|
%p.validation-pending.hide Checking username availability...
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.label :email
|
|
|
|
= f.email_field :email, class: "form-control middle", required: true, title: "Please provide a valid email address."
|
2017-01-04 11:32:39 -05:00
|
|
|
.form-group
|
2016-11-11 19:47:32 -05:00
|
|
|
= f.label :email_confirmation
|
|
|
|
= f.email_field :email_confirmation, class: "form-control middle", required: true, title: "Please retype the email address."
|
2015-02-05 09:56:58 -05:00
|
|
|
.form-group.append-bottom-20#password-strength
|
2016-09-09 08:21:00 -04:00
|
|
|
= 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
|
2015-12-27 12:03:06 -05:00
|
|
|
%div
|
2017-01-27 11:25:39 -05:00
|
|
|
- if Gitlab::Recaptcha.enabled?
|
2015-12-27 12:03:06 -05:00
|
|
|
= recaptcha_tags
|
2017-07-03 08:50:49 -04:00
|
|
|
.submit-container
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.submit "Register", class: "btn-register btn"
|
2016-09-23 07:38:39 -04:00
|
|
|
.clearfix.submit-container
|
2015-02-13 09:16:17 -05:00
|
|
|
%p
|
2015-04-07 17:46:00 -04:00
|
|
|
%span.light Didn't receive a confirmation email?
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to "Request a new one", new_confirmation_path(resource_name)
|