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
6807d06b
Commit
6807d06b
authored
Feb 11, 2022
by
Erick Banks
Committed by
Vitaly Slobodin
Mar 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rubocop:disable QA/ElementWithPattern
parent
721f11de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
app/views/projects/_new_project_fields.html.haml
app/views/projects/_new_project_fields.html.haml
+5
-5
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+5
-5
No files found.
app/views/projects/_new_project_fields.html.haml
View file @
6807d06b
...
...
@@ -8,7 +8,7 @@
.form-group.project-name.col-sm-12
=
f
.
label
:name
,
class:
'label-bold'
do
%span
=
_
(
"Project name"
)
=
f
.
text_field
:name
,
placeholder:
"My awesome project"
,
class:
"form-control gl-form-input input-lg"
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"activate_form_input"
,
track_property:
"project_name"
,
track_value:
""
},
required:
true
,
aria:
{
required:
true
}
=
f
.
text_field
:name
,
placeholder:
"My awesome project"
,
class:
"form-control gl-form-input input-lg"
,
data:
{
qa_selector:
'project_name'
,
track_label:
"
#{
track_label
}
"
,
track_action:
"activate_form_input"
,
track_property:
"project_name"
,
track_value:
""
},
required:
true
,
aria:
{
required:
true
}
.form-group.project-path.col-sm-6
=
f
.
label
:namespace_id
,
class:
'label-bold'
do
%span
=
_
(
'Project URL'
)
...
...
@@ -29,7 +29,7 @@
.form-group.project-path.col-sm-6
=
f
.
label
:path
,
class:
'label-bold'
do
%span
=
_
(
"Project slug"
)
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control gl-form-input"
,
required:
true
,
aria:
{
required:
true
},
data:
{
username:
current_user
.
username
}
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control gl-form-input"
,
required:
true
,
aria:
{
required:
true
},
data:
{
qa_selector:
'project_path'
,
username:
current_user
.
username
}
-
if
current_user
.
can_create_group?
.form-text.text-muted
-
link_start_group_path
=
'<a href="%{path}">'
%
{
path:
new_group_path
}
...
...
@@ -44,14 +44,14 @@
.form-group
=
f
.
label
:description
,
class:
'label-bold'
do
=
s_
(
'ProjectsNew|Project description %{tag_start}(optional)%{tag_end}'
).
html_safe
%
{
tag_start:
'<span>'
.
html_safe
,
tag_end:
'</span>'
.
html_safe
}
=
f
.
text_area
:description
,
placeholder:
s_
(
'ProjectsNew|Description format'
),
class:
"form-control gl-form-input"
,
rows:
3
,
maxlength:
250
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"activate_form_input"
,
track_property:
"project_description"
,
track_value:
""
}
=
f
.
text_area
:description
,
placeholder:
s_
(
'ProjectsNew|Description format'
),
class:
"form-control gl-form-input"
,
rows:
3
,
maxlength:
250
,
data:
{
qa_selector:
'project_description'
,
track_label:
"
#{
track_label
}
"
,
track_action:
"activate_form_input"
,
track_property:
"project_description"
,
track_value:
""
}
.js-deployment-target-select
=
f
.
label
:visibility_level
,
class:
'label-bold'
do
=
s_
(
'ProjectsNew|Visibility Level'
)
=
link_to
sprite_icon
(
'question-o'
),
help_page_path
(
'public_access/public_access'
),
aria:
{
label:
'Documentation for Visibility Level'
},
target:
'_blank'
,
rel:
'noopener noreferrer'
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
visibility_level
.
to_i
,
can_change_visibility_level:
true
,
form_model:
@project
,
with_label:
false
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
visibility_level
.
to_i
,
can_change_visibility_level:
true
,
form_model:
@project
,
with_label:
false
,
data:
{
qa_selector:
'visibility_radios'
}
-
if
!
hide_init_with_readme
=
f
.
label
:project_configuration
,
class:
'label-bold'
do
...
...
@@ -74,5 +74,5 @@
-
e
.
variant
(
:unchecked_free_indicator
)
do
=
render
'new_project_initialize_with_sast'
,
experiment_name:
e
.
name
,
track_label:
track_label
,
checked:
false
,
with_free_badge:
true
=
f
.
submit
_
(
'Create project'
),
class:
"btn gl-button btn-confirm"
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"click_button"
,
track_property:
"create_project"
,
track_value:
""
}
=
f
.
submit
_
(
'Create project'
),
class:
"btn gl-button btn-confirm"
,
data:
{
qa_selector:
'project_create_button'
,
track_label:
"
#{
track_label
}
"
,
track_action:
"click_button"
,
track_property:
"create_project"
,
track_value:
""
}
=
link_to
_
(
'Cancel'
),
dashboard_projects_path
,
class:
'btn gl-button btn-default btn-cancel'
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"click_button"
,
track_property:
"cancel"
,
track_value:
""
}
qa/qa/page/project/new.rb
View file @
6807d06b
...
...
@@ -13,11 +13,11 @@ module QA
view
'app/views/projects/_new_project_fields.html.haml'
do
element
:initialize_with_readme_checkbox
element
:project_name
,
'text_field :name'
# rubocop:disable QA/ElementWithPattern
element
:project_path
,
'text_field :path'
# rubocop:disable QA/ElementWithPattern
element
:project_description
,
'text_area :description'
# rubocop:disable QA/ElementWithPattern
element
:project_create_button
,
"submit _('Create project')"
# rubocop:disable QA/ElementWithPattern
element
:visibility_radios
,
'visibility_level:'
# rubocop:disable QA/ElementWithPattern
element
:project_name
element
:project_path
element
:project_description
element
:project_create_button
element
:visibility_radios
end
view
'app/views/projects/_new_project_initialize_with_sast.html.haml'
do
...
...
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