debian-mirror-gitlab/app/views/devise/shared/_signup_box.html.haml

37 lines
2.4 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
#register-pane.tab-pane.login-box{ role: 'tabpanel' }
2015-04-26 12:48:37 +05:30
.login-body
2017-08-17 22:00:37 +05:30
= 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-04-26 12:48:37 +05:30
.devise-errors
= devise_error_messages!
2017-08-17 22:00:37 +05:30
.form-group
2018-11-20 20:47:30 +05:30
= f.label :name, 'Full name', class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.text_field :name, class: "form-control top qa-new-user-name", required: true, title: "This field is required."
2017-08-17 22:00:37 +05:30
.username.form-group
2018-11-20 20:47:30 +05:30
= f.label :username, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.text_field :username, class: "form-control middle qa-new-user-username", pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, required: true, title: 'Please create a username with only alphanumeric characters.'
2016-11-03 12:29:30 +05:30
%p.validation-error.hide Username is already taken.
%p.validation-success.hide Username is available.
%p.validation-pending.hide Checking username availability...
2017-08-17 22:00:37 +05:30
.form-group
2018-11-20 20:47:30 +05:30
= f.label :email, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.email_field :email, class: "form-control middle qa-new-user-email", required: true, title: "Please provide a valid email address."
2017-08-17 22:00:37 +05:30
.form-group
2018-11-20 20:47:30 +05:30
= f.label :email_confirmation, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.email_field :email_confirmation, class: "form-control middle qa-new-user-email-confirmation", required: true, title: "Please retype the email address."
2015-04-26 12:48:37 +05:30
.form-group.append-bottom-20#password-strength
2018-11-20 20:47:30 +05:30
= f.label :password, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= 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."
2018-11-20 20:47:30 +05:30
%p.gl-field-hint.text-secondary Minimum length is #{@minimum_password_length} characters
2018-11-08 19:23:39 +05:30
- if Gitlab::CurrentSettings.current_application_settings.enforce_terms?
.form-group
= check_box_tag :terms_opt_in, '1', false, required: true
= 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
%div
2017-08-17 22:00:37 +05:30
- if Gitlab::Recaptcha.enabled?
= recaptcha_tags
2017-09-10 17:25:29 +05:30
.submit-container
2018-12-05 23:21:45 +05:30
= f.submit "Register", class: "btn-register btn qa-new-user-register-button"