Skip to content
Browse files

Clean up some code on the demo site

  • Loading branch information...
1 parent a8d21f3 commit b069c175067b4c124656aee424446108f1ae24f6 @jeremyevans committed
Showing with 1 addition and 7 deletions.
  1. +1 −7 demo-site/forme_demo.rb
View
8 demo-site/forme_demo.rb
@@ -133,7 +133,6 @@ def demo(t, opts={})
r.is 'default' do
@page_title = 'BS3: Album Basic - Default'
@form_opts_base = { :config=>:bs3 }
- @css = ""
demo :album_basic
end
@@ -145,8 +144,7 @@ def demo(t, opts={})
r.is 'list' do
@page_title = 'BS3: Album Basic - List'
- # TODO: the :wrapper_attr is not passed through. WHY??
- @form_opts_base = {:config=>:bs3, :wrapper=>:li, :wrapper_attr => { :class => 'list-item' }, :inputs_wrapper=>:ol}
+ @form_opts_base = {:config=>:bs3, :wrapper=>:li, :inputs_wrapper=>:ol}
@css = "ol, li {list-style-type: none;}"
demo :album_basic
end
@@ -160,13 +158,11 @@ def demo(t, opts={})
r.is 'alt_assoc' do
@page_title = 'Album Basic - Association Radios/Checkboxes'
@form_opts_base = {:config=>:bs3, :many=>{:as=>:checkbox}, :one=>{:as=>:radio} }
- @css = ""
demo :album_basic
end
r.is 'readonly' do
@page_title = 'BS3: Album Basic - Read Only'
- # @form_opts_base = {:config=>:bs3, :wrapper=>:li, :inputs_wrapper=>:ol, :formatter=>:readonly}
@form_opts_base = {:config=>:bs3, :formatter=>:bs3_readonly}
@css = "ol, li {list-style-type: none;}"
demo :album_basic
@@ -177,7 +173,6 @@ def demo(t, opts={})
r.is 'nested' do
@page_title = 'BS3: Single Level Nesting'
@form_opts_base = { :config=>:bs3 }
- @css = "" #form label { display: block; }"
@subform_opts = { :config=>:bs3 }
demo :album_nested
end
@@ -188,7 +183,6 @@ def demo(t, opts={})
r.is 'nested' do
@page_title = 'BS3: - Multiple Level Nesting'
@form_opts_base = { :config=>:bs3 }
- @css = ""
@subform_opts = { :config=>:bs3 }
demo :artist_nested
end

0 comments on commit b069c17

Please sign in to comment.
Something went wrong with that request. Please try again.