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
Jérome Perrin
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 @@
...
@@ -114,39 +114,23 @@
}
}
.project-visibility-level-holder
{
.project-visibility-level-holder
{
.controls
{
.radio
{
padding-bottom
:
9px
;
margin-bottom
:
10px
;
}
.controls
{
i
{
input
{
margin
:
0
3px
;
f
loat
:
left
;
f
ont-size
:
20px
;
}
}
.descr
{
display
:
block
;
margin-left
:
1
.5em
;
&
.restricted
{
color
:
#888
;
}
label
{
.option-title
{
float
:
none
;
font-weight
:
bold
;
padding
:
0
;
margin
:
0
;
text-align
:
left
;
}
}
.info
{
display
:
block
;
margin-top
:
5px
;
}
strong
{
display
:
inline-block
;
display
:
inline-block
;
width
:
4em
;
}
}
}
i
{
.option-descr
{
color
:
inherit
;
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?
-
if
@group
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
.form-group
=
f
.
label
:name
do
=
f
.
label
:name
,
class:
'control-label'
do
Group name
Group name
.col-sm-10
.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
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group
.form-group
.col-sm-2
.col-sm-10
.col-sm-10
%ul
%ul
%li
A group is a collection of several projects
%li
A group is a collection of several projects
...
...
app/views/projects/_visibility_level.html.haml
View file @
eace1ce6
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
.col-sm-10
.col-sm-10
-
if
can_change_visibility_level
-
if
can_change_visibility_level
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
.
append-bottom-10
.
radio
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
=
f
.
radio_button
:visibility_level
,
level
,
checked:
(
visibility_level
==
level
),
disabled:
restricted
=
f
.
radio_button
:visibility_level
,
level
,
checked:
(
visibility_level
==
level
),
disabled:
restricted
%span
.descr
{
:class
=>
(
"restricted"
if
restricted
)}
=
label
:project_visibility_level
,
level
do
=
label
:project_visibility_level
,
level
do
=
visibility_level_icon
(
level
)
=
visibility_level_icon
(
level
)
.option-title
%strong
=
visibility_level_label
(
level
)
=
visibility_level_label
(
level
)
.option-descr
.light.prepend-left-20
=
visibility_level_description
(
level
)
=
visibility_level_description
(
level
)
-
unless
restricted_visibility_levels
.
empty?
-
unless
restricted_visibility_levels
.
empty?
.col-sm-10
.col-sm-10
%span
.info
%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