diff options
| author | Mark Otto <[email protected]> | 2012-02-05 01:41:45 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-05 01:41:45 -0800 |
| commit | abf4ecac4dbd378a4985880e27f2897ebca75e7b (patch) | |
| tree | f56aae97241d13e8ede02585c982fa0baf4349dd | |
| parent | 83cb1053178241d95b0f53da062a4b742d0313cc (diff) | |
| download | bootstrap-abf4ecac4dbd378a4985880e27f2897ebca75e7b.tar.xz bootstrap-abf4ecac4dbd378a4985880e27f2897ebca75e7b.zip | |
add another code example for horizontal forms
| -rw-r--r-- | docs/assets/bootstrap.zip | bin | 52391 -> 52391 bytes | |||
| -rw-r--r-- | docs/base-css.html | 19 | ||||
| -rw-r--r-- | docs/templates/pages/base-css.mustache | 16 |
3 files changed, 34 insertions, 1 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip Binary files differindex 0700910d3..d55ce3f0d 100644 --- a/docs/assets/bootstrap.zip +++ b/docs/assets/bootstrap.zip 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, <code>section</code> should be wrapped as inline. <pre class="prettyprint linenums"> <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. </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"> +<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> +</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"> +<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> +</pre> </div> <div class="span4"> <h3>{{_i}}What's included{{/i}}</h3> |
