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
3a47ed97
Commit
3a47ed97
authored
Oct 21, 2014
by
Ciro Santilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor group forms
parent
72abe9f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
28 deletions
+15
-28
app/views/admin/groups/_form.html.haml
app/views/admin/groups/_form.html.haml
+1
-9
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+1
-10
app/views/groups/new.html.haml
app/views/groups/new.html.haml
+1
-9
app/views/shared/_group_form.html.haml
app/views/shared/_group_form.html.haml
+12
-0
No files found.
app/views/admin/groups/_form.html.haml
View file @
3a47ed97
...
...
@@ -2,16 +2,8 @@
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group.group_name_holder
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"form-control"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
=
render
'shared/group_form'
,
f:
f
.form-group.group-description-holder
=
f
.
label
:avatar
,
"Group avatar"
,
class:
'control-label'
...
...
app/views/groups/edit.html.haml
View file @
3a47ed97
...
...
@@ -11,16 +11,7 @@
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control left"
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
=
render
'shared/group_form'
,
f:
f
.form-group
.col-sm-2
...
...
app/views/groups/new.html.haml
View file @
3a47ed97
...
...
@@ -2,16 +2,8 @@
-
if
@group
.
errors
.
any?
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control"
,
tabindex:
1
,
autofocus:
true
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
,
tabindex:
2
=
render
'shared/group_form'
,
f:
f
,
autofocus:
true
.form-group.group-description-holder
=
f
.
label
:avatar
,
"Group avatar"
,
class:
'control-label'
...
...
app/views/shared/_group_form.html.haml
0 → 100644
View file @
3a47ed97
.form-group
=
f
.
label
:name
,
class:
'control-label'
do
Group name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
'Example Group'
,
class:
'form-control'
,
autofocus:
local_assigns
[
:autofocus
]
||
false
.form-group.group-description-holder
=
f
.
label
:description
,
'Details'
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
'form-control js-gfm-input'
,
rows:
4
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