about summary refs log tree commit diff stats
path: root/app/views/admin/blogs/_form.html.haml
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:30:30 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:30:30 -0400
commit9cf94eec5ae98f750f9babc0c37373df87e3981c (patch)
tree31ffe18ad835db2d786b406f76162766eabbbda9 /app/views/admin/blogs/_form.html.haml
parent7971d7ac77c83717afcceaa1f476d1eb9afd5918 (diff)
downloadthoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.tar.gz
thoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.tar.bz2
thoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.zip
Styled flash and errors in admin panel
Diffstat (limited to 'app/views/admin/blogs/_form.html.haml')
-rw-r--r--app/views/admin/blogs/_form.html.haml10
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