2021-06-17 18:10:22 +00:00
- @html_class = "subscriptions-layout-html"
2020-09-04 18:08:48 +00:00
- page_title _('Your profile')
2021-02-04 21:09:06 +00:00
- add_page_specific_style 'page_bundles/signup'
2021-04-14 00:10:39 +00:00
- gitlab_experience_text = _('To personalize your GitLab experience, we\'d like to know a bit more about you')
2021-12-22 06:13:39 +00:00
- content_for :page_specific_javascripts do
= render "layouts/google_tag_manager_head"
= render "layouts/one_trust"
2022-02-17 09:15:27 +00:00
= render "layouts/bizible"
2021-12-22 06:13:39 +00:00
= render "layouts/google_tag_manager_body"
2020-09-04 18:08:48 +00:00
2020-11-03 03:08:56 +00:00
.row.gl-flex-grow-1
2021-06-17 18:10:22 +00:00
.d-flex.gl-flex-direction-column.gl-align-items-center.gl-w-full.gl-px-5.gl-pb-5
.edit-profile.login-page.d-flex.flex-column.gl-align-items-center
2020-09-04 18:08:48 +00:00
= render_if_exists "registrations/welcome/progress_bar"
2021-01-29 06:09:09 +00:00
%h2.gl-text-center= html_escape(_('Welcome to GitLab,%{br_tag}%{name}!')) % { name: html_escape(current_user.first_name), br_tag: '<br/>'.html_safe }
2021-04-14 00:10:39 +00:00
- if Gitlab.com?
%p.gl-text-center= html_escape(_('%{gitlab_experience_text}. We won\'t share this information with anyone.')) % { gitlab_experience_text: gitlab_experience_text }
- else
%p.gl-text-center= html_escape(_('%{gitlab_experience_text}. Don\'t worry, this information isn\'t shared outside of your self-managed GitLab instance.')) % { gitlab_experience_text: gitlab_experience_text }
2022-05-11 03:07:57 +00:00
= gitlab_ui_form_for(current_user, url: users_sign_up_welcome_path, html: { class: 'card gl-w-full! gl-p-5 js-users-signup-welcome', 'aria-live' => 'assertive' }) do |f|
2020-09-04 18:08:48 +00:00
.devise-errors
= render 'devise/shared/error_messages', resource: current_user
.row
.form-group.col-sm-12
= f.label :role, _('Role'), class: 'label-bold'
2022-01-11 21:14:42 +00:00
= f.select :role, ::User.roles.keys.map { |role| [role.titleize, role] }, { include_blank: _('Select a role') }, class: 'form-control js-user-role-dropdown', autofocus: true, required: true, data: { qa_selector: 'role_dropdown' }
2020-12-02 15:09:37 +00:00
- if Feature.enabled?(:user_other_role_details)
.row
2021-04-15 09:09:03 +00:00
.form-group.col-sm-12.js-other-role-group.hidden
2022-04-25 18:11:07 +00:00
= f.label :other_role, _('What is your job title? (optional)')
2020-12-02 15:09:37 +00:00
= f.text_field :other_role, class: 'form-control'
2021-10-29 09:10:11 +00:00
= render_if_exists "registrations/welcome/jobs_to_be_done", f: f
2020-09-04 18:08:48 +00:00
= render_if_exists "registrations/welcome/setup_for_company", f: f
2021-10-29 09:10:11 +00:00
= render_if_exists "registrations/welcome/joining_project"
2021-04-07 18:09:45 +00:00
= render 'devise/shared/email_opted_in', f: f
2020-09-04 18:08:48 +00:00
.row
.form-group.col-sm-12.gl-mb-0
- if partial_exists? "registrations/welcome/button"
= render "registrations/welcome/button"
- else
2021-03-19 09:08:53 +00:00
= f.submit _('Get started!'), class: 'btn-confirm gl-button btn btn-block gl-mb-0 gl-p-3', data: { qa_selector: 'get_started_button' }