summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-04-04 17:04:35 -0300
committerFelipe Artur <felipefac@gmail.com>2016-04-05 11:53:39 -0300
commit32c7e42b612bdda43eeef55d8c8afdc9eeb33785 (patch)
tree249f53f853e45ad2ed529e5fd53970b9ba5b8390 /app/views
parent5d428030451b1fa2bac89f798c40d2f91ac65bac (diff)
downloadgitlab-ce-32c7e42b612bdda43eeef55d8c8afdc9eeb33785.tar.gz
Improve code
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"