From ca30bcbfee9abcabc89c7e1e388135983c27ad83 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 11 Jul 2009 13:47:13 -0700 Subject: [PATCH] Added an example that show the inline form styling, and some blueprint display issues. --- .../blueprint_default/parts/forms.html.haml | 62 ++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/examples/blueprint_default/parts/forms.html.haml b/examples/blueprint_default/parts/forms.html.haml index 21b1ccc3..647b5f52 100644 --- a/examples/blueprint_default/parts/forms.html.haml +++ b/examples/blueprint_default/parts/forms.html.haml @@ -9,7 +9,7 @@ %link{ :href => "../stylesheets/screen.css", :rel => "stylesheet", :media => "screen, projection", :type => "text/css" } %link{ :href => "../stylesheets/print.css", :rel => "stylesheet", :media => "print", :type => "text/css" } / - [if IE]> "checkbox" } Check three %br + .span-24.last + %fieldset + %legend + Alignment + %p + %label{ :for => "dummy5" } + Select field + %select#dummy5{ :name => "dummy5" } + %option{ :value => "1" } + Ottawa + %option{ :value => "2" } + Calgary + %option{ :value => "3" } + Moosejaw + %p + %label{ :for => "dummy6" } + Text input (title) + %input#dummy6.title{ :name => "dummy6", :type => "text", :value => "Field with class .title" } + %p + %label{ :for => "dummy7" } + Select field + %select#dummy7{ :name => "dummy7" } + %option{ :value => "1" } + Ottawa + %option{ :value => "2" } + Calgary + %option{ :value => "3" } + Moosejaw + %label{ :for => "dummy8" } + Another field + %input#dummy8.text{ :name => "dummy8", :type => "text", :value => "Field with class .text" } + .span-24.last + %form.inline{ :action => "", :method => "post" } + %fieldset + %legend + A form with class "inline" + .span-3 + %label{ :for => "a" } + Label A: + %select#a{ :name => "a" } + %option{ :value => "0" } + All + .span-2 + some text + .span-3 + %input#o.checkbox{ :type => "checkbox", :name => "o", :value => "true", :checked => "checked" } + checkbox one + .span-3 + %label{ :for => "b" } + Label B: + %select#b{ :name => "b" } + %option{ :value => "0" } + All + .span-2 + %a{ :href => "" } + A Hyperlink + .span-8 + %input#q.text{ :type => "text", :name => "q", :value => "Field with class .text" } + .span-2.last + %input.button{ :type => "submit", :value => "submit" } %hr %p %a{ :href => "http://validator.w3.org/check?uri=referer" }