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
4cb27771
Commit
4cb27771
authored
Apr 27, 2021
by
Yogi
Committed by
Savas Vedova
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-form-input class for fields in create project page
parent
9d9b902a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/_new_project_fields.html.haml
app/views/projects/_new_project_fields.html.haml
+3
-3
changelogs/unreleased/gl-form-create-repo.yml
changelogs/unreleased/gl-form-create-repo.yml
+5
-0
No files found.
app/views/projects/_new_project_fields.html.haml
View file @
4cb27771
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
.form-group.project-name.col-sm-12
.form-group.project-name.col-sm-12
=
f
.
label
:name
,
class:
'label-bold'
do
=
f
.
label
:name
,
class:
'label-bold'
do
%span
=
_
(
"Project name"
)
%span
=
_
(
"Project name"
)
=
f
.
text_field
:name
,
placeholder:
"My awesome project"
,
class:
"form-control input-lg"
,
autofocus:
true
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"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"
,
autofocus:
true
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"activate_form_input"
,
track_property:
"project_name"
,
track_value:
""
},
required:
true
,
aria:
{
required:
true
}
.form-group.project-path.col-sm-6
.form-group.project-path.col-sm-6
=
f
.
label
:namespace_id
,
class:
'label-bold'
do
=
f
.
label
:namespace_id
,
class:
'label-bold'
do
%span
=
s_
(
"Project URL"
)
%span
=
s_
(
"Project URL"
)
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
.form-group.project-path.col-sm-6
.form-group.project-path.col-sm-6
=
f
.
label
:path
,
class:
'label-bold'
do
=
f
.
label
:path
,
class:
'label-bold'
do
%span
=
_
(
"Project slug"
)
%span
=
_
(
"Project slug"
)
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control"
,
required:
true
,
aria:
{
required:
true
}
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control
gl-form-input
"
,
required:
true
,
aria:
{
required:
true
}
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
.form-text.text-muted
.form-text.text-muted
-
link_start_group_path
=
'<a href="%{path}">'
%
{
path:
new_group_path
}
-
link_start_group_path
=
'<a href="%{path}">'
%
{
path:
new_group_path
}
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
.form-group
.form-group
=
f
.
label
:description
,
class:
'label-bold'
do
=
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
}
=
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"
,
rows:
3
,
maxlength:
250
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"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:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"activate_form_input"
,
track_property:
"project_description"
,
track_value:
""
}
=
f
.
label
:visibility_level
,
class:
'label-bold'
do
=
f
.
label
:visibility_level
,
class:
'label-bold'
do
=
s_
(
'ProjectsNew|Visibility Level'
)
=
s_
(
'ProjectsNew|Visibility Level'
)
...
...
changelogs/unreleased/gl-form-create-repo.yml
0 → 100644
View file @
4cb27771
---
title
:
Add gl-form-input class for fields in create project page
merge_request
:
58299
author
:
Yogi (@yo)
type
:
changed
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