From abf4ecac4dbd378a4985880e27f2897ebca75e7b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 5 Feb 2012 01:41:45 -0800 Subject: [PATCH] add another code example for horizontal forms --- docs/assets/bootstrap.zip | Bin 52391 -> 52391 bytes docs/base-css.html | 19 ++++++++++++++++++- docs/templates/pages/base-css.mustache | 16 ++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 0700910d343d0e8edbc1a3ddcf8bcfa724f4ae52..d55ce3f0deecf9ae7bfe579b302795936ddf7c83 100644 GIT binary patch delta 445 zc-mV&lX>|}W}X0VW)?065HRMQ$fKxy$xqM!G7y(ma5FHnd}m}}U=aaIq9_YcWrHZ2 z%vT`I1QeKI3l-RS`xFP03Gd|PoQ`al!6KXAaR#yj)l7C2G=eJHTq&4i01|rcXa*Bf zcG{;4GATf2^8b8JRO2UW7dV4OF8OUPDX0_x3B7Nyg$WroRttdaTt86-YA0A9P~_W0 z1DGpxCcRbw2}y1?fe8g~-YWt!O6Y_>(~OvDnFle!7$AjNq)_#KqQ{rX>VlJK(o6}8^O#5^6s9tL*m(- LaRTug&Zq+blF^~8 delta 445 zc-mV&lX>|}W}X0VW)?065QycO$fKz2H{L$Q0Th_LoYN7iWb-@DKz62Bp2?1aMr;tnH&+Vg7=VPH zJDS0Sl%4kJ0)-|9$V~p9&j}R;8xK^cUEmBBaq`_6j&}VY;o&5il_~d|7Y#>Dur(`DAoe*bo z28qgoM7EvqM&c=*^oQ|)`X`-qfanMFKA&_!HZ2xpnlY06np1&DJh{`}Xm)p <form class="well"> <label>Label name</label> - <input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span> + <input type="text" class="span3" placeholder="Type something…"> + <span class="help-inline">Associated help text!</span> <label class="checkbox"> <input type="checkbox"> Check me out </label> @@ -983,6 +984,22 @@ For example, <code>section</code> should be wrapped as inline. +

Example markup

+

Given the above example form layout, here's the markup associated with the first input and control group.

+
+<form class="form-horizontal">
+  <fieldset>
+    <legend>Legend text</legend>
+    <div class="control-group">
+      <label class="control-label" for="input01">Text input</label>
+      <div class="controls">
+        <input type="text" class="input-xlarge" id="input01">
+        <p class="help-block">Supporting help text</p>
+      </div>
+    </div>
+  </fieldset>
+</form>
+

What's included

diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 3327594b5e..e3420ed092 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -908,6 +908,22 @@
+

{{_i}}Example markup{{/i}}

+

{{_i}}Given the above example form layout, here's the markup associated with the first input and control group.{{/i}}

+
+<form class="form-horizontal">
+  <fieldset>
+    <legend>{{_i}}Legend text{{/i}}</legend>
+    <div class="control-group">
+      <label class="control-label" for="input01">{{_i}}Text input{{/i}}</label>
+      <div class="controls">
+        <input type="text" class="input-xlarge" id="input01">
+        <p class="help-block">{{_i}}Supporting help text{{/i}}</p>
+      </div>
+    </div>
+  </fieldset>
+</form>
+

{{_i}}What's included{{/i}}

-- 2.47.3