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
Boxiang Sun
gitlab-ce
Commits
eace1ce6
Commit
eace1ce6
authored
Jan 08, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new group form
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3c7a8064
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
39 deletions
+24
-39
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+12
-28
app/views/groups/new.html.haml
app/views/groups/new.html.haml
+5
-4
app/views/projects/_visibility_level.html.haml
app/views/projects/_visibility_level.html.haml
+7
-7
No files found.
app/assets/stylesheets/sections/projects.scss
View file @
eace1ce6
...
...
@@ -114,39 +114,23 @@
}
.project-visibility-level-holder
{
.controls
{
padding-bottom
:
9px
;
}
.radio
{
margin-bottom
:
10px
;
.controls
{
input
{
f
loat
:
left
;
i
{
margin
:
0
3px
;
f
ont-size
:
20px
;
}
.descr
{
display
:
block
;
margin-left
:
1
.5em
;
&
.restricted
{
color
:
#888
;
}
label
{
float
:
none
;
padding
:
0
;
margin
:
0
;
text-align
:
left
;
}
}
.info
{
display
:
block
;
margin-top
:
5px
;
}
strong
{
.option-title
{
font-weight
:
bold
;
display
:
inline-block
;
width
:
4em
;
}
}
i
{
color
:
inherit
;
.option-descr
{
margin-left
:
24px
;
color
:
#666
;
}
}
}
...
...
app/views/groups/new.html.haml
View file @
eace1ce6
=
form_for
@group
do
|
f
|
=
form_for
@group
,
html:
{
class:
'group-form form-horizontal'
}
do
|
f
|
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
=
f
.
label
:name
do
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control
left
"
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group
.col-sm-2
.col-sm-10
%ul
%li
A group is a collection of several projects
...
...
app/views/projects/_visibility_level.html.haml
View file @
eace1ce6
...
...
@@ -5,15 +5,15 @@
.col-sm-10
-
if
can_change_visibility_level
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
.
append-bottom-10
.
radio
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
=
f
.
radio_button
:visibility_level
,
level
,
checked:
(
visibility_level
==
level
),
disabled:
restricted
%span
.descr
{
:class
=>
(
"restricted"
if
restricted
)}
=
label
:project_visibility_level
,
level
do
=
visibility_level_icon
(
level
)
%strong
=
visibility_level_label
(
level
)
.light.prepend-left-20
=
visibility_level_description
(
level
)
=
label
:project_visibility_level
,
level
do
=
visibility_level_icon
(
level
)
.option-title
=
visibility_level_label
(
level
)
.option-descr
=
visibility_level_description
(
level
)
-
unless
restricted_visibility_levels
.
empty?
.col-sm-10
%span
.info
...
...
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