BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0e7d1fd4
Commit
0e7d1fd4
authored
Feb 25, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add optional title field to service properties.
parent
7b34c9dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
_form.html.haml
app/views/admin/services/_form.html.haml
+2
-1
_form.html.haml
app/views/projects/services/_form.html.haml
+2
-1
No files found.
app/views/admin/services/_form.html.haml
View file @
0e7d1fd4
...
...
@@ -16,6 +16,7 @@
-
@service
.
fields
.
each
do
|
field
|
-
name
=
field
[
:name
]
-
title
=
field
[
:title
]
||
name
.
humanize
-
value
=
@service
.
send
(
name
)
unless
field
[
:type
]
==
'password'
-
type
=
field
[
:type
]
-
placeholder
=
field
[
:placeholder
]
...
...
@@ -23,7 +24,7 @@
-
default_choice
=
field
[
:default_choice
]
.form-group
=
f
.
label
name
,
class:
"control-label"
=
f
.
label
name
,
title
,
class:
"control-label"
.col-sm-10
-
if
type
==
'text'
=
f
.
text_field
name
,
class:
"form-control"
,
placeholder:
placeholder
...
...
app/views/projects/services/_form.html.haml
View file @
0e7d1fd4
...
...
@@ -29,6 +29,7 @@
-
@service
.
fields
.
each
do
|
field
|
-
name
=
field
[
:name
]
-
title
=
field
[
:title
]
||
name
.
humanize
-
value
=
@service
.
send
(
name
)
unless
field
[
:type
]
==
'password'
-
type
=
field
[
:type
]
-
placeholder
=
field
[
:placeholder
]
...
...
@@ -36,7 +37,7 @@
-
default_choice
=
field
[
:default_choice
]
.form-group
=
f
.
label
name
,
class:
"control-label"
=
f
.
label
name
,
title
,
class:
"control-label"
.col-sm-10
-
if
type
==
'text'
=
f
.
text_field
name
,
class:
"form-control"
,
placeholder:
placeholder
...
...
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