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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
36542b1d
Commit
36542b1d
authored
Jul 08, 2021
by
Jonas Wälter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rearrange milestone form
Changelog: changed
parent
6eb99551
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
54 deletions
+48
-54
app/views/groups/milestones/_form.html.haml
app/views/groups/milestones/_form.html.haml
+18
-20
app/views/projects/milestones/_form.html.haml
app/views/projects/milestones/_form.html.haml
+19
-21
app/views/shared/milestones/_form_dates.html.haml
app/views/shared/milestones/_form_dates.html.haml
+11
-13
No files found.
app/views/groups/milestones/_form.html.haml
View file @
36542b1d
=
form_for
[
@group
,
@milestone
],
html:
{
class:
'milestone-form common-note-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_errors
(
@milestone
)
.row
.col-md-6
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:title
,
_
(
"Title"
)
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"form-control"
,
data:
{
qa_selector:
"milestone_title_field"
},
required:
true
,
autofocus:
true
.form-group.row.milestone-description
.col-form-label.col-sm-2
=
f
.
label
:description
,
_
(
"Description"
)
.col-sm-10
=
render
layout:
'shared/md_preview'
,
locals:
{
url:
group_preview_markdown_path
}
do
=
render
'shared/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
qa_selector:
'milestone_description_field'
,
supports_autocomplete:
true
,
placeholder:
_
(
'Write milestone description...'
)
.clearfix
.error-alert
=
render
"shared/milestones/form_dates"
,
f:
f
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:title
,
_
(
"Title"
)
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"form-control"
,
data:
{
qa_selector:
"milestone_title_field"
},
required:
true
,
autofocus:
true
=
render
"shared/milestones/form_dates"
,
f:
f
.form-group.row.milestone-description
.col-form-label.col-sm-2
=
f
.
label
:description
,
_
(
"Description"
)
.col-sm-10
=
render
layout:
'shared/md_preview'
,
locals:
{
url:
group_preview_markdown_path
}
do
=
render
'shared/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
qa_selector:
'milestone_description_field'
,
supports_autocomplete:
true
,
placeholder:
_
(
'Write milestone description...'
)
.clearfix
.error-alert
.form-actions
-
if
@milestone
.
new_record?
...
...
app/views/projects/milestones/_form.html.haml
View file @
36542b1d
=
form_for
[
@project
,
@milestone
],
html:
{
class:
'milestone-form common-note-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_errors
(
@milestone
)
.row
.col-md-6
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:title
,
_
(
'Title'
)
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
'form-control gl-form-input'
,
data:
{
qa_selector:
'milestone_title_field'
},
required:
true
,
autofocus:
true
.form-group.row.milestone-description
.col-form-label.col-sm-2
=
f
.
label
:description
,
_
(
'Description'
)
.col-sm-10
=
render
layout:
'shared/md_preview'
,
locals:
{
url:
preview_markdown_path
(
@project
)
}
do
=
render
'shared/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
qa_selector:
'milestone_description_field'
,
supports_autocomplete:
true
,
placeholder:
_
(
'Write milestone description...'
)
=
render
'shared/notes/hints'
.clearfix
.error-alert
=
render
'shared/milestones/form_dates'
,
f:
f
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:title
,
_
(
'Title'
)
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
'form-control gl-form-input'
,
data:
{
qa_selector:
'milestone_title_field'
},
required:
true
,
autofocus:
true
=
render
'shared/milestones/form_dates'
,
f:
f
.form-group.row.milestone-description
.col-form-label.col-sm-2
=
f
.
label
:description
,
_
(
'Description'
)
.col-sm-10
=
render
layout:
'shared/md_preview'
,
locals:
{
url:
preview_markdown_path
(
@project
)
}
do
=
render
'shared/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
qa_selector:
'milestone_description_field'
,
supports_autocomplete:
true
,
placeholder:
_
(
'Write milestone description...'
)
=
render
'shared/notes/hints'
.clearfix
.error-alert
.form-actions
-
if
@milestone
.
new_record?
...
...
app/views/shared/milestones/_form_dates.html.haml
View file @
36542b1d
.col-md-6
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:start_date
,
_
(
'Start Date'
)
.col-sm-10
=
f
.
text_field
:start_date
,
class:
"datepicker form-control gl-form-input"
,
data:
{
qa_selector:
"start_date_field"
},
placeholder:
_
(
'Select start date'
),
autocomplete:
'off'
%a
.inline.float-right.gl-mt-2.js-clear-start-date
{
href:
"#"
}=
_
(
'Clear start date'
)
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:due_date
,
_
(
'Due Date'
)
.col-sm-10
=
f
.
text_field
:due_date
,
class:
"datepicker form-control gl-form-input"
,
data:
{
qa_selector:
"due_date_field"
},
placeholder:
_
(
'Select due date'
),
autocomplete:
'off'
%a
.inline.float-right.gl-mt-2.js-clear-due-date
{
href:
"#"
}=
_
(
'Clear due date'
)
.form-group.row
.col-form-label.col-sm-2
=
f
.
label
:start_date
,
_
(
'Start Date'
)
.col-sm-4
=
f
.
text_field
:start_date
,
class:
"datepicker form-control gl-form-input"
,
data:
{
qa_selector:
"start_date_field"
},
placeholder:
_
(
'Select start date'
),
autocomplete:
'off'
%a
.inline.float-right.gl-mt-2.js-clear-start-date
{
href:
"#"
}=
_
(
'Clear start date'
)
.col-form-label.col-sm-2
=
f
.
label
:due_date
,
_
(
'Due Date'
)
.col-sm-4
=
f
.
text_field
:due_date
,
class:
"datepicker form-control gl-form-input"
,
data:
{
qa_selector:
"due_date_field"
},
placeholder:
_
(
'Select due date'
),
autocomplete:
'off'
%a
.inline.float-right.gl-mt-2.js-clear-due-date
{
href:
"#"
}=
_
(
'Clear due date'
)
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