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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
67119e15
Commit
67119e15
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use consistent casing for form field labels
parent
ed74fa73
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
30 deletions
+19
-30
app/views/admin/labels/_form.html.haml
app/views/admin/labels/_form.html.haml
+1
-1
app/views/projects/blob/_new_dir.html.haml
app/views/projects/blob/_new_dir.html.haml
+1
-1
app/views/projects/branches/new.html.haml
app/views/projects/branches/new.html.haml
+1
-1
app/views/projects/labels/_form.html.haml
app/views/projects/labels/_form.html.haml
+1
-1
app/views/projects/tags/new.html.haml
app/views/projects/tags/new.html.haml
+2
-2
app/views/shared/_group_form.html.haml
app/views/shared/_group_form.html.haml
+1
-1
app/views/shared/_new_commit_form.html.haml
app/views/shared/_new_commit_form.html.haml
+1
-2
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+6
-16
features/steps/admin/labels.rb
features/steps/admin/labels.rb
+4
-4
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+1
-1
No files found.
app/views/admin/labels/_form.html.haml
View file @
67119e15
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
.col-sm-10
.col-sm-10
=
f
.
text_field
:title
,
class:
"form-control"
,
required:
true
=
f
.
text_field
:title
,
class:
"form-control"
,
required:
true
.form-group
.form-group
=
f
.
label
:color
,
"Background
C
olor"
,
class:
'control-label'
=
f
.
label
:color
,
"Background
c
olor"
,
class:
'control-label'
.col-sm-10
.col-sm-10
.input-group
.input-group
.input-group-addon.label-color-preview
.input-group-addon.label-color-preview
...
...
app/views/projects/blob/_new_dir.html.haml
View file @
67119e15
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.modal-body
.modal-body
=
form_tag
namespace_project_create_dir_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
remote:
false
,
class:
'form-horizontal js-create-dir-form'
do
=
form_tag
namespace_project_create_dir_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
remote:
false
,
class:
'form-horizontal js-create-dir-form'
do
.form-group
.form-group
=
label_tag
:dir_name
,
'Directory
N
ame'
,
class:
'control-label'
=
label_tag
:dir_name
,
'Directory
n
ame'
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
text_field_tag
:dir_name
,
params
[
:dir_name
],
placeholder:
"Directory name"
,
required:
true
,
class:
'form-control'
=
text_field_tag
:dir_name
,
params
[
:dir_name
],
placeholder:
"Directory name"
,
required:
true
,
class:
'form-control'
...
...
app/views/projects/branches/new.html.haml
View file @
67119e15
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
=
form_tag
namespace_project_branches_path
,
method: :post
,
id:
"new-branch-form"
,
class:
"form-horizontal js-requires-input"
do
=
form_tag
namespace_project_branches_path
,
method: :post
,
id:
"new-branch-form"
,
class:
"form-horizontal js-requires-input"
do
.form-group
.form-group
=
label_tag
:branch_name
,
'Name for new branch'
,
class:
'control-label'
=
label_tag
:branch_name
,
nil
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
text_field_tag
:branch_name
,
params
[
:branch_name
],
placeholder:
'enter new branch name'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
=
text_field_tag
:branch_name
,
params
[
:branch_name
],
placeholder:
'enter new branch name'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
.form-group
.form-group
...
...
app/views/projects/labels/_form.html.haml
View file @
67119e15
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
.col-sm-10
.col-sm-10
=
f
.
text_field
:title
,
class:
"form-control js-quick-submit"
,
required:
true
=
f
.
text_field
:title
,
class:
"form-control js-quick-submit"
,
required:
true
.form-group
.form-group
=
f
.
label
:color
,
"Background
C
olor"
,
class:
'control-label'
=
f
.
label
:color
,
"Background
c
olor"
,
class:
'control-label'
.col-sm-10
.col-sm-10
.input-group
.input-group
.input-group-addon.label-color-preview
.input-group-addon.label-color-preview
...
...
app/views/projects/tags/new.html.haml
View file @
67119e15
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal gfm-form tag-form"
do
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal gfm-form tag-form"
do
.form-group
.form-group
=
label_tag
:tag_name
,
'Name for new tag'
,
class:
'control-label'
=
label_tag
:tag_name
,
nil
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
text_field_tag
:tag_name
,
params
[
:tag_name
],
placeholder:
'v3.0.1'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
=
text_field_tag
:tag_name
,
params
[
:tag_name
],
placeholder:
'v3.0.1'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
.form-group
.form-group
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
=
text_field_tag
:ref
,
params
[
:ref
],
placeholder:
'master'
,
required:
true
,
tabindex:
2
,
class:
'form-control'
=
text_field_tag
:ref
,
params
[
:ref
],
placeholder:
'master'
,
required:
true
,
tabindex:
2
,
class:
'form-control'
.help-block
Branch name or commit SHA
.help-block
Branch name or commit SHA
.form-group
.form-group
=
label_tag
:message
,
'Message'
,
class:
'control-label'
=
label_tag
:message
,
nil
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
text_field_tag
:message
,
nil
,
placeholder:
'Enter message.'
,
required:
false
,
tabindex:
3
,
class:
'form-control'
=
text_field_tag
:message
,
nil
,
placeholder:
'Enter message.'
,
required:
false
,
tabindex:
3
,
class:
'form-control'
.help-block
(Optional) Entering a message will create an annotated tag.
.help-block
(Optional) Entering a message will create an annotated tag.
...
...
app/views/shared/_group_form.html.haml
View file @
67119e15
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
%li
It will change the git path to repositories under this group.
%li
It will change the git path to repositories under this group.
.form-group.group-description-holder
.form-group.group-description-holder
=
f
.
label
:description
,
'Details'
,
class:
'control-label'
=
f
.
label
:description
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
=
f
.
text_area
:description
,
maxlength:
250
,
class:
'form-control js-gfm-input'
,
rows:
4
class:
'form-control js-gfm-input'
,
rows:
4
app/views/shared/_new_commit_form.html.haml
View file @
67119e15
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
-
unless
@project
.
empty_repo?
-
unless
@project
.
empty_repo?
.form-group.branch
.form-group.branch
=
label_tag
'branch'
,
class:
'control-label'
do
=
label_tag
'new_branch'
,
'Target branch'
,
class:
'control-label'
Branch
.col-sm-10
.col-sm-10
=
text_field_tag
'new_branch'
,
@new_branch
||
@ref
,
class:
"form-control js-new-branch"
=
text_field_tag
'new_branch'
,
@new_branch
||
@ref
,
class:
"form-control js-new-branch"
...
...
app/views/shared/issuable/_form.html.haml
View file @
67119e15
...
@@ -30,13 +30,11 @@
...
@@ -30,13 +30,11 @@
=
render
'projects/notes/hints'
=
render
'projects/notes/hints'
.clearfix
.clearfix
.error-alert
.error-alert
%hr
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
issuable
.
project
)
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
issuable
.
project
)
%hr
.form-group
.form-group
.issue-assignee
.issue-assignee
=
f
.
label
:assignee_id
,
class:
'control-label'
do
=
f
.
label
:assignee_id
,
"Assignee"
,
class:
'control-label'
%i
.fa.fa-user
Assign to
.col-sm-10
.col-sm-10
=
users_select_tag
(
"
#{
issuable
.
class
.
model_name
.
param_key
}
[assignee_id]"
,
=
users_select_tag
(
"
#{
issuable
.
class
.
model_name
.
param_key
}
[assignee_id]"
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
null_user:
true
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
null_user:
true
,
...
@@ -46,9 +44,7 @@
...
@@ -46,9 +44,7 @@
=
link_to
'Assign to me'
,
'#'
,
class:
'btn assign-to-me-link'
=
link_to
'Assign to me'
,
'#'
,
class:
'btn assign-to-me-link'
.form-group
.form-group
.issue-milestone
.issue-milestone
=
f
.
label
:milestone_id
,
class:
'control-label'
do
=
f
.
label
:milestone_id
,
"Milestone"
,
class:
'control-label'
%i
.fa.fa-clock-o
Milestone
.col-sm-10
.col-sm-10
-
if
milestone_options
(
issuable
).
present?
-
if
milestone_options
(
issuable
).
present?
=
f
.
select
(
:milestone_id
,
milestone_options
(
issuable
),
=
f
.
select
(
:milestone_id
,
milestone_options
(
issuable
),
...
@@ -60,9 +56,7 @@
...
@@ -60,9 +56,7 @@
-
if
can?
current_user
,
:admin_milestone
,
issuable
.
project
-
if
can?
current_user
,
:admin_milestone
,
issuable
.
project
=
link_to
'Create new milestone'
,
new_namespace_project_milestone_path
(
issuable
.
project
.
namespace
,
issuable
.
project
),
target: :blank
=
link_to
'Create new milestone'
,
new_namespace_project_milestone_path
(
issuable
.
project
.
namespace
,
issuable
.
project
),
target: :blank
.form-group
.form-group
=
f
.
label
:label_ids
,
class:
'control-label'
do
=
f
.
label
:label_ids
,
"Labels"
,
class:
'control-label'
%i
.fa.fa-tag
Labels
.col-sm-10
.col-sm-10
-
if
issuable
.
project
.
labels
.
any?
-
if
issuable
.
project
.
labels
.
any?
=
f
.
collection_select
:label_ids
,
issuable
.
project
.
labels
.
all
,
:id
,
:name
,
=
f
.
collection_select
:label_ids
,
issuable
.
project
.
labels
.
all
,
:id
,
:name
,
...
@@ -78,15 +72,11 @@
...
@@ -78,15 +72,11 @@
%hr
%hr
-
if
@merge_request
.
new_record?
-
if
@merge_request
.
new_record?
.form-group
.form-group
=
f
.
label
:source_branch
,
class:
'control-label'
do
=
f
.
label
:source_branch
,
class:
'control-label'
%i
.fa.fa-code-fork
Source Branch
.col-sm-10
.col-sm-10
=
f
.
select
(
:source_branch
,
[
@merge_request
.
source_branch
],
{
},
{
class:
'source_branch select2 span2'
,
disabled:
true
})
=
f
.
select
(
:source_branch
,
[
@merge_request
.
source_branch
],
{
},
{
class:
'source_branch select2 span2'
,
disabled:
true
})
.form-group
.form-group
=
f
.
label
:target_branch
,
class:
'control-label'
do
=
f
.
label
:target_branch
,
class:
'control-label'
%i
.fa.fa-code-fork
Target Branch
.col-sm-10
.col-sm-10
=
f
.
select
(
:target_branch
,
@merge_request
.
target_branches
,
{
include_blank:
"Select branch"
},
{
class:
'target_branch select2 span2'
,
disabled:
@merge_request
.
new_record?
})
=
f
.
select
(
:target_branch
,
@merge_request
.
target_branches
,
{
include_blank:
"Select branch"
},
{
class:
'target_branch select2 span2'
,
disabled:
@merge_request
.
new_record?
})
-
if
@merge_request
.
new_record?
-
if
@merge_request
.
new_record?
...
...
features/steps/admin/labels.rb
View file @
67119e15
...
@@ -45,21 +45,21 @@ class Spinach::Features::AdminIssuesLabels < Spinach::FeatureSteps
...
@@ -45,21 +45,21 @@ class Spinach::Features::AdminIssuesLabels < Spinach::FeatureSteps
step
'I submit new label \'support\''
do
step
'I submit new label \'support\''
do
visit
new_admin_label_path
visit
new_admin_label_path
fill_in
'Title'
,
with:
'support'
fill_in
'Title'
,
with:
'support'
fill_in
'Background
C
olor'
,
with:
'#F95610'
fill_in
'Background
c
olor'
,
with:
'#F95610'
click_button
'Save'
click_button
'Save'
end
end
step
'I submit new label \'bug\''
do
step
'I submit new label \'bug\''
do
visit
new_admin_label_path
visit
new_admin_label_path
fill_in
'Title'
,
with:
'bug'
fill_in
'Title'
,
with:
'bug'
fill_in
'Background
C
olor'
,
with:
'#F95610'
fill_in
'Background
c
olor'
,
with:
'#F95610'
click_button
'Save'
click_button
'Save'
end
end
step
'I submit new label with invalid color'
do
step
'I submit new label with invalid color'
do
visit
new_admin_label_path
visit
new_admin_label_path
fill_in
'Title'
,
with:
'support'
fill_in
'Title'
,
with:
'support'
fill_in
'Background
C
olor'
,
with:
'#12'
fill_in
'Background
c
olor'
,
with:
'#12'
click_button
'Save'
click_button
'Save'
end
end
...
@@ -101,7 +101,7 @@ class Spinach::Features::AdminIssuesLabels < Spinach::FeatureSteps
...
@@ -101,7 +101,7 @@ class Spinach::Features::AdminIssuesLabels < Spinach::FeatureSteps
step
'I change label \'bug\' to \'fix\''
do
step
'I change label \'bug\' to \'fix\''
do
fill_in
'Title'
,
with:
'fix'
fill_in
'Title'
,
with:
'fix'
fill_in
'Background
C
olor'
,
with:
'#F15610'
fill_in
'Background
c
olor'
,
with:
'#F15610'
click_button
'Save'
click_button
'Save'
end
end
...
...
spec/features/issues_spec.rb
View file @
67119e15
...
@@ -61,7 +61,7 @@ describe 'Issues', feature: true do
...
@@ -61,7 +61,7 @@ describe 'Issues', feature: true do
it
'allows user to select unasigned'
,
js:
true
do
it
'allows user to select unasigned'
,
js:
true
do
visit
edit_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
visit
edit_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
expect
(
page
).
to
have_content
"Assign
to
#{
@user
.
name
}
"
expect
(
page
).
to
have_content
"Assign
ee
#{
@user
.
name
}
"
first
(
'#s2id_issue_assignee_id'
).
click
first
(
'#s2id_issue_assignee_id'
).
click
sleep
2
# wait for ajax stuff to complete
sleep
2
# wait for ajax stuff to complete
...
...
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