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
c52f9e1a
Commit
c52f9e1a
authored
Aug 07, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use control-group classes for inline forms in project new/edit pages
parent
a3b0dc2e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
app/views/profiles/keys/_form.html.haml
app/views/profiles/keys/_form.html.haml
+4
-4
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+11
-11
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+11
-11
app/views/snippets/_form.html.haml
app/views/snippets/_form.html.haml
+6
-6
No files found.
app/views/profiles/keys/_form.html.haml
View file @
c52f9e1a
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.
controls
=
f
.
text_field
:title
.c
learfix
.c
ontrol-group
=
f
.
label
:key
=
f
.
label
:key
.
input
.
controls
%p
.light
%p
.light
Paste your public key here. Read more about how generate it
#{
link_to
"here"
,
help_ssh_path
}
Paste your public key here. Read more about how generate it
#{
link_to
"here"
,
help_ssh_path
}
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
...
...
app/views/projects/edit.html.haml
View file @
c52f9e1a
...
@@ -8,24 +8,24 @@
...
@@ -8,24 +8,24 @@
.form-holder
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
%fieldset
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
do
Project name is
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
=
f
.
label
:description
do
Project description
Project description
%span
.light
(optional)
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
.c
learfix
.c
ontrol-group
=
f
.
label
:default_branch
,
"Default Branch"
=
f
.
label
:default_branch
,
"Default Branch"
.
input
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
...
@@ -66,11 +66,11 @@
...
@@ -66,11 +66,11 @@
-
if
Project
.
issues_tracker
.
values
.
count
>
1
-
if
Project
.
issues_tracker
.
values
.
count
>
1
.control-group
.control-group
=
f
.
label
:issues_tracker
,
"Issues tracker"
,
class:
'control-label'
=
f
.
label
:issues_tracker
,
"Issues tracker"
,
class:
'control-label'
.
input
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.
controls
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.c
learfix
.c
ontrol-group
=
f
.
label
:issues_tracker_id
,
"Project name or id in issues tracker"
,
class:
'control-label'
=
f
.
label
:issues_tracker_id
,
"Project name or id in issues tracker"
,
class:
'control-label'
.
input
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.
controls
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.control-group
.control-group
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
do
%span
Namespace
%span
Namespace
.controls
.controls
.c
learfix
.c
ontrol-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%ul
%ul
%li
Be careful. Changing project namespace can have unintended side effects
%li
Be careful. Changing project namespace can have unintended side effects
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
=
f
.
label
:path
do
=
f
.
label
:path
do
%span
Path
%span
Path
.controls
.controls
.c
learfix
.c
ontrol-group
=
f
.
text_field
:path
=
f
.
text_field
:path
%ul
%ul
%li
Be careful. Rename of project repo can have unintended side effects
%li
Be careful. Rename of project repo can have unintended side effects
...
...
app/views/projects/new.html.haml
View file @
c52f9e1a
...
@@ -3,36 +3,36 @@
...
@@ -3,36 +3,36 @@
=
render
'projects/errors'
=
render
'projects/errors'
.project-edit-content
.project-edit-content
=
form_for
@project
,
remote:
true
do
|
f
|
=
form_for
@project
,
remote:
true
do
|
f
|
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
do
Project name is
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
,
tabindex:
1
,
autofocus:
true
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
,
tabindex:
1
,
autofocus:
true
-
if
current_user
.
can_select_namespace?
-
if
current_user
.
can_select_namespace?
.c
learfix
.c
ontrol-group
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
do
%span
Namespace
%span
Namespace
.
input
.
controls
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
.c
learfix
.c
ontrol-group
.
input
.
controls
=
link_to
"#"
,
class:
'appear-link'
do
=
link_to
"#"
,
class:
'appear-link'
do
%i
.icon-upload-alt
%i
.icon-upload-alt
%span
Import existing repository?
%span
Import existing repository?
.c
learfix
.appear-data.import-url-data
.c
ontrol-group
.appear-data.import-url-data
=
f
.
label
:import_url
do
=
f
.
label
:import_url
do
%span
Import existing repo
%span
Import existing repo
.
input
.
controls
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
.light
.light
URL must be cloneable
URL must be cloneable
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
=
f
.
label
:description
do
Description
Description
%span
.light
(optional)
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
%p
.padded
%p
.padded
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
.pull-right
.pull-right
.
input
.light
.
controls
.light
Need a group for several dependent projects?
Need a group for several dependent projects?
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
Create a group
Create a group
...
...
app/views/snippets/_form.html.haml
View file @
c52f9e1a
...
@@ -9,16 +9,16 @@
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.c
ontrol-group
=
f
.
label
"Private?"
=
f
.
label
"Private?"
.
input
=
f
.
check_box
:private
,
{
class:
''
}
.
controls
=
f
.
check_box
:private
,
{
class:
''
}
.c
learfix
.c
ontrol-group
.file-editor
.file-editor
=
f
.
label
:file_name
,
"File"
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-holder.snippet
.file-title
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
...
...
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