aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-02-05 01:41:45 -0800
committerMark Otto <[email protected]>2012-02-05 01:41:45 -0800
commitabf4ecac4dbd378a4985880e27f2897ebca75e7b (patch)
treef56aae97241d13e8ede02585c982fa0baf4349dd
parent83cb1053178241d95b0f53da062a4b742d0313cc (diff)
downloadbootstrap-abf4ecac4dbd378a4985880e27f2897ebca75e7b.tar.xz
bootstrap-abf4ecac4dbd378a4985880e27f2897ebca75e7b.zip
add another code example for horizontal forms
-rw-r--r--docs/assets/bootstrap.zipbin52391 -> 52391 bytes
-rw-r--r--docs/base-css.html19
-rw-r--r--docs/templates/pages/base-css.mustache16
3 files changed, 34 insertions, 1 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 0700910d3..d55ce3f0d 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/base-css.html b/docs/base-css.html
index f84cbe774..22025bbb2 100644
--- a/docs/base-css.html
+++ b/docs/base-css.html
@@ -869,7 +869,8 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<pre class="prettyprint linenums">
&lt;form class="well"&gt;
&lt;label&gt;Label name&lt;/label&gt;
- &lt;input type="text" class="span3" placeholder="Type something…"&gt; &lt;span class="help-inline"&gt;Associated help text!&lt;/span&gt;
+ &lt;input type="text" class="span3" placeholder="Type something…"&gt;
+ &lt;span class="help-inline"&gt;Associated help text!&lt;/span&gt;
&lt;label class="checkbox"&gt;
&lt;input type="checkbox"&gt; Check me out
&lt;/label&gt;
@@ -983,6 +984,22 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
</div>
</fieldset>
</form>
+ <h3>Example markup</h3>
+ <p>Given the above example form layout, here's the markup associated with the first input and control group.</p>
+<pre class="prettyprint linenums">
+&lt;form class="form-horizontal"&gt;
+ &lt;fieldset&gt;
+ &lt;legend&gt;Legend text&lt;/legend&gt;
+ &lt;div class="control-group"&gt;
+ &lt;label class="control-label" for="input01"&gt;Text input&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" class="input-xlarge" id="input01"&gt;
+ &lt;p class="help-block"&gt;Supporting help text&lt;/p&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+ &lt;/fieldset&gt;
+&lt;/form&gt;
+</pre>
</div>
<div class="span4">
<h3>What's included</h3>
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache
index 3327594b5..e3420ed09 100644
--- a/docs/templates/pages/base-css.mustache
+++ b/docs/templates/pages/base-css.mustache
@@ -908,6 +908,22 @@
</div>
</fieldset>
</form>
+ <h3>{{_i}}Example markup{{/i}}</h3>
+ <p>{{_i}}Given the above example form layout, here's the markup associated with the first input and control group.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;form class="form-horizontal"&gt;
+ &lt;fieldset&gt;
+ &lt;legend&gt;{{_i}}Legend text{{/i}}&lt;/legend&gt;
+ &lt;div class="control-group"&gt;
+ &lt;label class="control-label" for="input01"&gt;{{_i}}Text input{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" class="input-xlarge" id="input01"&gt;
+ &lt;p class="help-block"&gt;{{_i}}Supporting help text{{/i}}&lt;/p&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+ &lt;/fieldset&gt;
+&lt;/form&gt;
+</pre>
</div>
<div class="span4">
<h3>{{_i}}What's included{{/i}}</h3>