Fix indentation in new.html.haml

This commit is contained in:
Karina Kwiatek 2020-04-19 21:58:08 +01:00
parent e731d76d52
commit 80c6a4272a

View file

@ -2,15 +2,15 @@
.container.j2-page .container.j2-page
= bootstrap_form_for(@announcement, url: {action: "create"}) do |f| = bootstrap_form_for(@announcement, url: {action: "create"}) do |f|
- if @announcement.errors.any? - if @announcement.errors.any?
.row .row
.col-md-12 .col-md-12
.alert.alert-danger .alert.alert-danger
%strong %strong
= pluralize(@announcement.errors.count, "error") = pluralize(@announcement.errors.count, "error")
prohibited this announcement from being saved: prohibited this announcement from being saved:
%ul %ul
- @announcement.errors.full_messages.each do |err| - @announcement.errors.full_messages.each do |err|
%li= err %li= err
.row .row
.col-md-12 .col-md-12
= f.text_area :content, label: "Content" = f.text_area :content, label: "Content"