summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-07 15:19:56 +0000
committerRémy Coutable <remy@rymai.me>2016-04-07 15:19:56 +0000
commit074c2393901de2f06d9c4317f2ada6600b13d2e8 (patch)
tree44af89dee8a0fe7fb3f9fb32f0185c19b034e02e /app/views
parent9cae14037a0c52039c15483a29487a06697ad79d (diff)
parent0bef4b97647893df8cf0a781f768b1775ae2bb58 (diff)
downloadgitlab-ce-074c2393901de2f06d9c4317f2ada6600b13d2e8.tar.gz
Merge branch 'issue_14012' into 'master'
Fix problem when creating milestones in groups without projects Fixes #14012 See merge request !3481
Diffstat (limited to 'app/views')
-rw-r--r--app/views/groups/milestones/new.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/groups/milestones/new.html.haml b/app/views/groups/milestones/new.html.haml
index a8e1ed77da9..4290e0bf72e 100644
--- a/app/views/groups/milestones/new.html.haml
+++ b/app/views/groups/milestones/new.html.haml
@@ -10,6 +10,14 @@
= form_for @milestone, url: group_milestones_path(@group), html: { class: 'form-horizontal milestone-form gfm-form js-quick-submit js-requires-input' } do |f|
.row
+ - if @milestone.errors.any?
+ #error_explanation
+ .alert.alert-danger
+ %ul
+ - @milestone.errors.full_messages.each do |msg|
+ %li
+ = msg
+
.col-md-6
.form-group
= f.label :title, "Title", class: "control-label"