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
Léo-Paul Géneau
gitlab-ce
Commits
d67c3e35
Commit
d67c3e35
authored
Apr 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Milestones use new GLForm class
parent
c45ca936
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
app/assets/javascripts/dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+1
-1
app/views/groups/milestones/new.html.haml
app/views/groups/milestones/new.html.haml
+2
-2
app/views/projects/milestones/_form.html.haml
app/views/projects/milestones/_form.html.haml
+2
-3
No files found.
app/assets/javascripts/dispatcher.js.coffee
View file @
d67c3e35
...
...
@@ -28,7 +28,7 @@ class Dispatcher
new
Todos
()
when
'projects:milestones:new'
,
'projects:milestones:edit'
new
ZenMode
()
new
DropzoneInput
(
$
(
'.milestone-form'
))
new
GLForm
(
$
(
'.milestone-form'
))
when
'groups:milestones:new'
new
ZenMode
()
when
'projects:compare:show'
...
...
app/views/groups/milestones/new.html.haml
View file @
d67c3e35
...
...
@@ -8,7 +8,7 @@
This will create milestone in every selected project
%hr
=
form_for
@milestone
,
url:
group_milestones_path
(
@group
),
html:
{
class:
'form-horizontal milestone-form
gfm
-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_for
@milestone
,
url:
group_milestones_path
(
@group
),
html:
{
class:
'form-horizontal milestone-form
common-note
-form js-quick-submit js-requires-input'
}
do
|
f
|
.row
-
if
@milestone
.
errors
.
any?
#error_explanation
...
...
@@ -27,7 +27,7 @@
=
f
.
label
:description
,
"Description"
,
class:
"control-label"
.col-sm-10
=
render
layout:
'projects/md_preview'
,
locals:
{
preview_class:
"md-preview"
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'
description form-control
'
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'
note-textarea
'
.clearfix
.error-alert
.form-group
...
...
app/views/projects/milestones/_form.html.haml
View file @
d67c3e35
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@milestone
],
html:
{
class:
'form-horizontal milestone-form
gfm
-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@milestone
],
html:
{
class:
'form-horizontal milestone-form
common-note
-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_errors
(
@milestone
)
.row
.col-md-6
.form-group
...
...
@@ -11,7 +10,7 @@
=
f
.
label
:description
,
"Description"
,
class:
"control-label"
.col-sm-10
=
render
layout:
'projects/md_preview'
,
locals:
{
preview_class:
"md-preview"
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'
description form-control
'
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'
note-textarea
'
=
render
'projects/notes/hints'
.clearfix
.error-alert
...
...
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