9c95200219
- Add .no-tabs to login-box - Externalize strings in common signup box - Leverage render_if_exists - Update PO file
37 lines
2.8 KiB
Text
37 lines
2.8 KiB
Text
#register-pane.tab-pane.login-box{ role: 'tabpanel' }
|
|
.login-body
|
|
= 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|
|
|
.devise-errors
|
|
= render "devise/shared/error_messages", resource: resource
|
|
.name.form-group
|
|
= f.label :name, _('Full name'), class: 'label-bold'
|
|
= f.text_field :name, class: "form-control top qa-new-user-name js-block-emoji", required: true, title: _("This field is required.")
|
|
.username.form-group
|
|
= f.label :username, class: 'label-bold'
|
|
= f.text_field :username, class: "form-control middle qa-new-user-username js-block-emoji", pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, required: true, title: _("Please create a username with only alphanumeric characters.")
|
|
%p.validation-error.hide= _('Username is already taken.')
|
|
%p.validation-success.hide= _('Username is available.')
|
|
%p.validation-pending.hide= _('Checking username availability...')
|
|
.form-group
|
|
= f.label :email, class: 'label-bold'
|
|
= f.email_field :email, class: "form-control middle qa-new-user-email", required: true, title: _("Please provide a valid email address.")
|
|
.form-group
|
|
= f.label :email_confirmation, class: 'label-bold'
|
|
= f.email_field :email_confirmation, class: "form-control middle qa-new-user-email-confirmation", required: true, title: _("Please retype the email address.")
|
|
.form-group.append-bottom-20#password-strength
|
|
= f.label :password, class: 'label-bold'
|
|
= f.password_field :password, class: "form-control bottom qa-new-user-password", required: true, pattern: ".{#{@minimum_password_length},}", title: _("Minimum length is %{minimum_password_length} characters.") % { minimum_password_length: @minimum_password_length }
|
|
%p.gl-field-hint.text-secondary= _('Minimum length is %{minimum_password_length} characters') % { minimum_password_length: @minimum_password_length }
|
|
- if Gitlab::CurrentSettings.current_application_settings.enforce_terms?
|
|
.form-group
|
|
= check_box_tag :terms_opt_in, '1', false, required: true, class: 'qa-new-user-accept-terms'
|
|
= label_tag :terms_opt_in do
|
|
- terms_link = link_to s_("I accept the|Terms of Service and Privacy Policy"), terms_path, target: "_blank"
|
|
- accept_terms_label = _("I accept the %{terms_link}") % { terms_link: terms_link }
|
|
= accept_terms_label.html_safe
|
|
= render_if_exists 'devise/shared/email_opted_in', f: f
|
|
%div
|
|
- if Gitlab::Recaptcha.enabled?
|
|
= recaptcha_tags
|
|
.submit-container
|
|
= f.submit _("Register"), class: "btn-register btn qa-new-user-register-button"
|