diff --git a/app/views/announcement/new.html.haml b/app/views/announcement/new.html.haml index 57ed3eaf..25942f28 100644 --- a/app/views/announcement/new.html.haml +++ b/app/views/announcement/new.html.haml @@ -2,15 +2,15 @@ .container.j2-page = bootstrap_form_for(@announcement, url: {action: "create"}) do |f| - if @announcement.errors.any? - .row - .col-md-12 - .alert.alert-danger - %strong - = pluralize(@announcement.errors.count, "error") - prohibited this announcement from being saved: - %ul - - @announcement.errors.full_messages.each do |err| - %li= err + .row + .col-md-12 + .alert.alert-danger + %strong + = pluralize(@announcement.errors.count, "error") + prohibited this announcement from being saved: + %ul + - @announcement.errors.full_messages.each do |err| + %li= err .row .col-md-12 = f.text_area :content, label: "Content"