summaryrefslogtreecommitdiff
path: root/app/views/registrations/welcome.html.haml
blob: ef3e0b1b4c00a71dc21af79eed8dd4cd1f9e2e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- content_for(:page_title, _('Welcome to GitLab %{name}!') % { name: current_user.name })
.text-center.mb-3
  = html_escape(_('In order to tailor your experience with GitLab we%{br_tag}would like to know a bit more about you.')) % { br_tag: '<br/>'.html_safe }
.signup-box.p-3.mb-2
  .signup-body
    = 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|
      .devise-errors.mt-0
        = render 'devise/shared/error_messages', resource: current_user
      .form-group
        = f.label :role, _('Role'), class: 'label-bold'
        = f.select :role, ::User.roles.keys.map { |role| [role.titleize, role] }, {}, class: 'form-control'
      .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'
      .submit-container.mt-3
        = f.submit _('Get started!'), class: 'btn-register btn btn-block mb-0 p-2'