Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
abf4ecac
Commit
abf4ecac
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
add another code example for horizontal forms
parent
83cb1053
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/base-css.html
+18
-1
docs/base-css.html
docs/templates/pages/base-css.mustache
+16
-0
docs/templates/pages/base-css.mustache
with
34 additions
and
1 deletion
+34
-1
docs/assets/bootstrap.zip
+
0
-
0
View file @
abf4ecac
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/base-css.html
+
18
-
1
View file @
abf4ecac
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/base-css.mustache
+
16
-
0
View file @
abf4ecac
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets