diff options
Diffstat (limited to 'app/views/admin/blogs')
-rw-r--r-- | app/views/admin/blogs/_form.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 55a297a..4a1c410 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml | |||
@@ -1,7 +1,3 @@ | |||
1 | - if f.object.errors.any? | ||
2 | %ul#errors | ||
3 | - f.object.errors.full_messages.each do |error| | ||
4 | %li= error | ||
5 | %fieldset#content | 1 | %fieldset#content |
6 | .title-field | 2 | .title-field |
7 | = f.label :title | 3 | = f.label :title |
@@ -13,6 +9,12 @@ | |||
13 | = f.label :body | 9 | = f.label :body |
14 | = f.cktext_area :body | 10 | = f.cktext_area :body |
15 | %fieldset#details | 11 | %fieldset#details |
12 | - if f.object.errors.any? | ||
13 | #errors.details-module | ||
14 | %h3 Error! | ||
15 | %ul | ||
16 | - f.object.errors.full_messages.each do |error| | ||
17 | %li= error | ||
16 | .details-module | 18 | .details-module |
17 | = f.fields_for :records, Record.new do |builder| | 19 | = f.fields_for :records, Record.new do |builder| |
18 | .should-create-record-field | 20 | .should-create-record-field |