=f.password_field:password,class: "form-control top",required: true,title: 'This field is required',data: {qa_selector: 'password_field'}
=f.password_field:password,class: "form-control gl-form-input top",required: true,title: 'This field is required',data: {qa_selector: 'password_field'}
.form-group
.form-group
=f.label'Confirm new password',for: "user_password_confirmation"
=f.label'Confirm new password',for: "user_password_confirmation"
=f.password_field:password_confirmation,class: "form-control bottom",title: 'This field is required',data: {qa_selector: 'password_confirmation_field'},required: true
=f.password_field:password_confirmation,class: "form-control gl-form-input bottom",title: 'This field is required',data: {qa_selector: 'password_confirmation_field'},required: true
.clearfix
.clearfix
=f.submit"Change your password",class: "gl-button btn btn-primary",data: {qa_selector: 'change_password_button'}
=f.submit"Change your password",class: "gl-button btn btn-info",data: {qa_selector: 'change_password_button'}
=f.text_field:otp_attempt,class: 'form-control',required: true,autofocus: true,autocomplete: 'off',title: 'This field is required.',data: {qa_selector: 'two_fa_code_field'}
=f.text_field:otp_attempt,class: 'form-control gl-form-input',required: true,autofocus: true,autocomplete: 'off',title: 'This field is required.',data: {qa_selector: 'two_fa_code_field'}
%p.form-text.text-muted.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.
%p.form-text.text-muted.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.
=f.text_field:first_name,class: 'form-control top js-block-emoji js-validate-length',:data=>{:max_length=>max_first_name_length,:max_length_message=>s_('SignUp|First name is too long (maximum is %{max_length} characters).')%{max_length: max_first_name_length},:qa_selector=>'new_user_first_name_field'},required: true,title: _('This field is required.')
=f.text_field:first_name,class: 'form-control gl-form-input top js-block-emoji js-validate-length',:data=>{:max_length=>max_first_name_length,:max_length_message=>s_('SignUp|First name is too long (maximum is %{max_length} characters).')%{max_length: max_first_name_length},:qa_selector=>'new_user_first_name_field'},required: true,title: _('This field is required.')
=f.text_field:last_name,class: 'form-control top js-block-emoji js-validate-length',:data=>{:max_length=>max_last_name_length,:max_length_message=>s_('SignUp|Last name is too long (maximum is %{max_length} characters).')%{max_length: max_last_name_length},:qa_selector=>'new_user_last_name_field'},required: true,title: _('This field is required.')
=f.text_field:last_name,class: 'form-control gl-form-input top js-block-emoji js-validate-length',:data=>{:max_length=>max_last_name_length,:max_length_message=>s_('SignUp|Last name is too long (maximum is %{max_length} characters).')%{max_length: max_last_name_length},:qa_selector=>'new_user_last_name_field'},required: true,title: _('This field is required.')
.username.form-group
.username.form-group
=f.label:username,class: 'label-bold'
=f.label:username,class: 'label-bold'
=f.text_field:username,class: 'form-control middle js-block-emoji js-validate-length js-validate-username',:data=>{:api_path=>suggestion_path,:min_length=>min_username_length,:min_length_message=>s_('SignUp|Username is too short (minimum is %{min_length} characters).')%{min_length: min_username_length},:max_length=>max_username_length,:max_length_message=>s_('SignUp|Username is too long (maximum is %{max_length} characters).')%{max_length: max_username_length},:qa_selector=>'new_user_username_field'},pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS,required: true,title: _('Please create a username with only alphanumeric characters.')
=f.text_field:username,class: 'form-control gl-form-input middle js-block-emoji js-validate-length js-validate-username',:data=>{:api_path=>suggestion_path,:min_length=>min_username_length,:min_length_message=>s_('SignUp|Username is too short (minimum is %{min_length} characters).')%{min_length: min_username_length},:max_length=>max_username_length,:max_length_message=>s_('SignUp|Username is too long (maximum is %{max_length} characters).')%{max_length: max_username_length},:qa_selector=>'new_user_username_field'},pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS,required: true,title: _('Please create a username with only alphanumeric characters.')
%p.validation-error.gl-text-red-500.gl-field-error-ignore.gl-mt-2.field-validation.hide=_('Username is already taken.')
%p.validation-error.gl-text-red-500.gl-field-error-ignore.gl-mt-2.field-validation.hide=_('Username is already taken.')
%p.validation-success.gl-text-green-600.gl-field-error-ignore.gl-mt-2.field-validation.hide=_('Username is available.')
%p.validation-success.gl-text-green-600.gl-field-error-ignore.gl-mt-2.field-validation.hide=_('Username is available.')