Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
1a19be99
Commit
1a19be99
authored
2 years ago
by
Camellia X Yang
Committed by
Natalia Tepluhina
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use card component in welcome page
parent
b8dc5e22
No related branches found
No related tags found
1 merge request
!105794
Use card component in welcome page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/registrations/welcome/show.html.haml
+19
-17
19 additions, 17 deletions
app/views/registrations/welcome/show.html.haml
with
19 additions
and
17 deletions
app/views/registrations/welcome/show.html.haml
+
19
−
17
View file @
1a19be99
...
...
@@ -18,22 +18,24 @@
%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
}
=
gitlab_ui_form_for
(
current_user
,
url:
users_sign_up_welcome_path
(
glm_tracking_params
),
html:
{
class:
'
card
gl-w-full! gl-p-5 js-users-signup-welcome'
,
html:
{
class:
'gl-w-full! gl-p-5 js-users-signup-welcome'
,
'aria-live'
=>
'assertive'
,
data:
{
testid:
'welcome-form'
}
})
do
|
f
|
.devise-errors
=
render
'devise/shared/error_messages'
,
resource:
current_user
.row
.form-group.col-sm-12
=
f
.
label
:role
,
_
(
'Role'
),
class:
'label-bold'
=
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'
}
=
render_if_exists
"registrations/welcome/jobs_to_be_done"
,
f:
f
=
render_if_exists
"registrations/welcome/setup_for_company"
,
f:
f
=
render_if_exists
"registrations/welcome/joining_project"
=
render
'devise/shared/email_opted_in'
,
f:
f
.row
.form-group.col-sm-12.gl-mb-0
-
if
partial_exists?
"registrations/welcome/button"
=
render
"registrations/welcome/button"
-
else
=
f
.
submit
_
(
'Get started!'
),
class:
'btn-confirm gl-button btn btn-block gl-mb-0 gl-p-3'
,
data:
{
qa_selector:
'get_started_button'
}
=
render
Pajamas
::
CardComponent
.
new
do
|
c
|
-
c
.
body
do
.devise-errors
=
render
'devise/shared/error_messages'
,
resource:
current_user
.row
.form-group.col-sm-12
=
f
.
label
:role
,
_
(
'Role'
),
class:
'label-bold'
=
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'
}
=
render_if_exists
"registrations/welcome/jobs_to_be_done"
,
f:
f
=
render_if_exists
"registrations/welcome/setup_for_company"
,
f:
f
=
render_if_exists
"registrations/welcome/joining_project"
=
render
'devise/shared/email_opted_in'
,
f:
f
.row
.form-group.col-sm-12.gl-mb-0
-
if
partial_exists?
"registrations/welcome/button"
=
render
"registrations/welcome/button"
-
else
=
f
.
submit
_
(
'Get started!'
),
class:
'btn-confirm gl-button btn btn-block gl-mb-0 gl-p-3'
,
data:
{
qa_selector:
'get_started_button'
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment