Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6d281174
Commit
6d281174
authored
Aug 24, 2021
by
Zhu Shung
Committed by
Lin Jen-Shin
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split partial for country select
parent
8011155f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ee/app/views/trials/_select_country.html.haml
ee/app/views/trials/_select_country.html.haml
+2
-0
ee/app/views/trials/new.html.haml
ee/app/views/trials/new.html.haml
+1
-2
No files found.
ee/app/views/trials/_select_country.html.haml
0 → 100644
View file @
6d281174
=
label_tag
:country
,
s_
(
'Trial|Country'
),
class:
'col-form-label'
=
select_tag
:country
,
options_for_select
([[
s_
(
'Trial|Please select a country'
),
''
]]),
class:
'select2 gl-transparent-pixel'
,
required:
true
,
id:
'country_select'
,
data:
{
countries_end_point:
countries_path
,
selected_option:
params
[
:country
],
qa_selector:
'country'
}
ee/app/views/trials/new.html.haml
View file @
6d281174
...
...
@@ -49,8 +49,7 @@
=
label_tag
:number_of_users
,
s_
(
'Trial|How many users will be evaluating the trial?'
),
for: :number_of_users
,
class:
'col-form-label'
=
number_field_tag
:number_of_users
,
params
[
:number_of_users
],
class:
'form-control gl-form-input'
,
required:
true
,
min:
1
,
data:
{
qa_selector:
'number_of_users'
}
.form-group.gl-select2-html5-required-fix
=
label_tag
:country
,
s_
(
'Trial|Country'
),
class:
'col-form-label'
=
select_tag
:country
,
options_for_select
([[
s_
(
'Trial|Please select a country'
),
''
]]),
class:
'select2 gl-transparent-pixel'
,
required:
true
,
id:
'country_select'
,
data:
{
countries_end_point:
countries_path
,
selected_option:
params
[
:country
],
qa_selector:
'country'
}
=
render
'select_country'
=
submit_tag
s_
(
'Trial|Continue'
),
class:
'btn gl-button btn-confirm btn-block'
,
data:
{
qa_selector:
'continue'
}
=
render
'skip_trial'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment