2019-12-26 22:10:19 +05:30
|
|
|
- content_for(:page_title, _('Welcome to GitLab @%{username}!') % { username: current_user.username })
|
2019-12-21 20:55:43 +05:30
|
|
|
- max_name_length = 128
|
|
|
|
.text-center.mb-3
|
2019-12-26 22:10:19 +05:30
|
|
|
= _('In order to tailor your experience with GitLab we<br>would like to know a bit more about you.').html_safe
|
2019-12-21 20:55:43 +05:30
|
|
|
.signup-box.p-3.mb-2
|
|
|
|
.signup-body
|
2019-12-26 22:10:19 +05:30
|
|
|
= form_for(current_user, url: users_sign_up_update_registration_path, html: { class: 'new_new_user gl-show-field-errors', 'aria-live' => 'assertive' }) do |f|
|
2019-12-21 20:55:43 +05:30
|
|
|
.devise-errors.mt-0
|
|
|
|
= render 'devise/shared/error_messages', resource: current_user
|
|
|
|
.name.form-group
|
|
|
|
= f.label :name, _('Full name'), class: 'label-bold'
|
|
|
|
= f.text_field :name, class: 'form-control top js-block-emoji js-validate-length', :data => { :max_length => max_name_length, :max_length_message => s_('Name is too long (maximum is %{max_length} characters).') % { max_length: max_name_length }, :qa_selector => 'new_user_name_field' }, required: true, title: _('This field is required.')
|
|
|
|
.form-group
|
|
|
|
= f.label :role, _('Role'), class: 'label-bold'
|
|
|
|
= f.select :role, ::User.roles.keys.map { |role| [role.titleize, role] }, {}, class: 'form-control'
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :setup_for_company, _('Are you setting up GitLab for a company?'), class: 'label-bold'
|
|
|
|
.d-flex.justify-content-center
|
|
|
|
.w-25
|
|
|
|
= f.radio_button :setup_for_company, true
|
|
|
|
= f.label :setup_for_company, _('Yes'), value: 'true'
|
|
|
|
.w-25
|
|
|
|
= f.radio_button :setup_for_company, false
|
|
|
|
= f.label :setup_for_company, _('No'), value: 'false'
|
2019-12-21 20:55:43 +05:30
|
|
|
.submit-container.mt-3
|
|
|
|
= f.submit _('Get started!'), class: 'btn-register btn btn-block mb-0 p-2'
|