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
95ede02c
Commit
95ede02c
authored
Jan 24, 2019
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CSS grid on a new Project/Group Milestone
Signed-off-by:
Takuya Noguchi
<
takninnovationresearch@gmail.com
>
parent
fda30abd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
app/views/groups/milestones/_form.html.haml
app/views/groups/milestones/_form.html.haml
+7
-7
app/views/projects/milestones/_form.html.haml
app/views/projects/milestones/_form.html.haml
+4
-2
app/views/shared/milestones/_form_dates.html.haml
app/views/shared/milestones/_form_dates.html.haml
+4
-2
changelogs/unreleased/56764-poor-ui-on-milestone-validation-error-page.yml
...ased/56764-poor-ui-on-milestone-validation-error-page.yml
+5
-0
No files found.
app/views/groups/milestones/_form.html.haml
View file @
95ede02c
=
form_for
[
@group
,
@milestone
],
html:
{
class:
'milestone-form common-note-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_for
[
@group
,
@milestone
],
html:
{
class:
'milestone-form common-note-form js-quick-submit js-requires-input'
}
do
|
f
|
=
form_errors
(
@milestone
)
.row
.row
=
form_errors
(
@milestone
)
.col-md-6
.col-md-6
.form-group.row
.form-group.row
=
f
.
label
:title
,
"Title"
,
class:
"col-form-label col-sm-2"
.col-form-label.col-sm-2
=
f
.
label
:title
,
"Title"
.col-sm-10
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"form-control"
,
required:
true
,
autofocus:
true
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"form-control"
,
required:
true
,
autofocus:
true
.form-group.row.milestone-description
.form-group.row.milestone-description
=
f
.
label
:description
,
"Description"
,
class:
"col-form-label col-sm-2"
.col-form-label.col-sm-2
=
f
.
label
:description
,
"Description"
.col-sm-10
.col-sm-10
=
render
layout:
'projects/md_preview'
,
locals:
{
url:
group_preview_markdown_path
}
do
=
render
layout:
'projects/md_preview'
,
locals:
{
url:
group_preview_markdown_path
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
placeholder:
'Write milestone description...'
,
supports_autocomplete:
false
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'note-textarea'
,
placeholder:
'Write milestone description...'
,
supports_autocomplete:
false
.clearfix
.clearfix
.error-alert
.error-alert
=
render
"shared/milestones/form_dates"
,
f:
f
=
render
"shared/milestones/form_dates"
,
f:
f
.form-actions
.form-actions
...
...
app/views/projects/milestones/_form.html.haml
View file @
95ede02c
...
@@ -5,11 +5,13 @@
...
@@ -5,11 +5,13 @@
.row
.row
.col-md-6
.col-md-6
.form-group.row
.form-group.row
=
f
.
label
:title
,
_
(
'Title'
),
class:
'col-form-label col-sm-2'
.col-form-label.col-sm-2
=
f
.
label
:title
,
_
(
'Title'
)
.col-sm-10
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
'qa-milestone-title form-control'
,
required:
true
,
autofocus:
true
=
f
.
text_field
:title
,
maxlength:
255
,
class:
'qa-milestone-title form-control'
,
required:
true
,
autofocus:
true
.form-group.row.milestone-description
.form-group.row.milestone-description
=
f
.
label
:description
,
_
(
'Description'
),
class:
'col-form-label col-sm-2'
.col-form-label.col-sm-2
=
f
.
label
:description
,
_
(
'Description'
)
.col-sm-10
.col-sm-10
=
render
layout:
'projects/md_preview'
,
locals:
{
url:
preview_markdown_path
(
@project
)
}
do
=
render
layout:
'projects/md_preview'
,
locals:
{
url:
preview_markdown_path
(
@project
)
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'qa-milestone-description note-textarea'
,
placeholder:
_
(
'Write milestone description...'
)
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'qa-milestone-description note-textarea'
,
placeholder:
_
(
'Write milestone description...'
)
...
...
app/views/shared/milestones/_form_dates.html.haml
View file @
95ede02c
.col-md-6
.col-md-6
.form-group.row
.form-group.row
=
f
.
label
:start_date
,
"Start Date"
,
class:
"col-form-label col-sm-2"
.col-form-label.col-sm-2
=
f
.
label
:start_date
,
"Start Date"
.col-sm-10
.col-sm-10
=
f
.
text_field
:start_date
,
class:
"datepicker form-control"
,
placeholder:
"Select start date"
,
autocomplete:
'off'
=
f
.
text_field
:start_date
,
class:
"datepicker form-control"
,
placeholder:
"Select start date"
,
autocomplete:
'off'
%a
.inline.float-right.prepend-top-5.js-clear-start-date
{
href:
"#"
}
Clear start date
%a
.inline.float-right.prepend-top-5.js-clear-start-date
{
href:
"#"
}
Clear start date
.form-group.row
.form-group.row
=
f
.
label
:due_date
,
"Due Date"
,
class:
"col-form-label col-sm-2"
.col-form-label.col-sm-2
=
f
.
label
:due_date
,
"Due Date"
.col-sm-10
.col-sm-10
=
f
.
text_field
:due_date
,
class:
"datepicker form-control"
,
placeholder:
"Select due date"
,
autocomplete:
'off'
=
f
.
text_field
:due_date
,
class:
"datepicker form-control"
,
placeholder:
"Select due date"
,
autocomplete:
'off'
%a
.inline.float-right.prepend-top-5.js-clear-due-date
{
href:
"#"
}
Clear due date
%a
.inline.float-right.prepend-top-5.js-clear-due-date
{
href:
"#"
}
Clear due date
changelogs/unreleased/56764-poor-ui-on-milestone-validation-error-page.yml
0 → 100644
View file @
95ede02c
---
title
:
Fix CSS grid on a new Project/Group Milestone
merge_request
:
24614
author
:
Takuya Noguchi
type
:
fixed
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