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
Kazuhiko Shiozaki
gitlab-ce
Commits
f96b954b
Commit
f96b954b
authored
Sep 22, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7804 from cirosantilli/factor-issue-mr-form-error
Factor issue and MR edit form error list.
parents
db12e2dc
eb033aa6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
app/views/projects/_issuable_form.html.haml
app/views/projects/_issuable_form.html.haml
+7
-0
app/views/projects/issues/_form.html.haml
app/views/projects/issues/_form.html.haml
+0
-7
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+0
-5
No files found.
app/views/projects/_issuable_form.html.haml
View file @
f96b954b
-
if
issuable
.
errors
.
any?
.row
.col-sm-10.col-sm-offset-2
.alert.alert-danger
-
issuable
.
errors
.
full_messages
.
each
do
|
msg
|
%span
=
msg
%br
.form-group
=
f
.
label
:title
,
class:
'control-label'
do
%strong
=
'Title *'
...
...
app/views/projects/issues/_form.html.haml
View file @
f96b954b
...
...
@@ -9,13 +9,6 @@
=
"Please review the <strong>
#{
link_to
"guidelines for contribution"
,
contribution_guide_url
}
</strong> to this repository."
.
html_safe
=
form_for
[
@project
,
@issue
],
html:
{
class:
'form-horizontal issue-form'
}
do
|
f
|
-
if
@issue
.
errors
.
any?
.row
.col-sm-10.col-sm-offset-2
.alert.alert-danger
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
%span
=
msg
%br
=
render
'projects/issuable_form'
,
f:
f
,
issuable:
@issue
.form-group
=
f
.
label
:label_ids
,
class:
'control-label'
do
...
...
app/views/projects/merge_requests/_form.html.haml
View file @
f96b954b
...
...
@@ -9,11 +9,6 @@
%strong
#{
link_to
"guidelines for contribution"
,
contribution_guide_url
}
to this repository.
-
if
@merge_request
.
errors
.
any?
.alert.alert-danger
-
@merge_request
.
errors
.
full_messages
.
each
do
|
msg
|
%div
=
msg
.merge-request-form-info
=
render
'projects/issuable_form'
,
f:
f
,
issuable:
@merge_request
.form-group
...
...
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