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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
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
Hide 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 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.c
learfix
.
controls
=
f
.
text_field
:title
.c
ontrol-group
=
f
.
label
:key
.
input
.
controls
%p
.light
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
]
...
...
app/views/projects/edit.html.haml
View file @
c52f9e1a
...
...
@@ -8,24 +8,24 @@
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
Project description
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
.c
learfix
.c
ontrol-group
=
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
)
...
...
@@ -66,11 +66,11 @@
-
if
Project
.
issues_tracker
.
values
.
count
>
1
.control-group
=
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'
.
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
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
...
...
@@ -110,7 +110,7 @@
=
f
.
label
:namespace_id
do
%span
Namespace
.controls
.c
learfix
.c
ontrol-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%ul
%li
Be careful. Changing project namespace can have unintended side effects
...
...
@@ -130,7 +130,7 @@
=
f
.
label
:path
do
%span
Path
.controls
.c
learfix
.c
ontrol-group
=
f
.
text_field
:path
%ul
%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 @@
=
render
'projects/errors'
.project-edit-content
=
form_for
@project
,
remote:
true
do
|
f
|
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
,
tabindex:
1
,
autofocus:
true
-
if
current_user
.
can_select_namespace?
.c
learfix
.c
ontrol-group
=
f
.
label
:namespace_id
do
%span
Namespace
.
input
.
controls
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
.c
learfix
.
input
.c
ontrol-group
.
controls
=
link_to
"#"
,
class:
'appear-link'
do
%i
.icon-upload-alt
%span
Import existing repository?
.c
learfix
.appear-data.import-url-data
.c
ontrol-group
.appear-data.import-url-data
=
f
.
label
:import_url
do
%span
Import existing repo
.
input
.
controls
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
.light
URL must be cloneable
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
Description
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
%p
.padded
...
...
@@ -42,7 +42,7 @@
-
if
current_user
.
can_create_group?
.pull-right
.
input
.light
.
controls
.light
Need a group for several dependent projects?
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
Create a group
...
...
app/views/snippets/_form.html.haml
View file @
c52f9e1a
...
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
ontrol-group
=
f
.
label
"Private?"
.
input
=
f
.
check_box
:private
,
{
class:
''
}
.c
learfix
.
controls
=
f
.
check_box
:private
,
{
class:
''
}
.c
ontrol-group
.file-editor
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-title
=
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