Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
abf4ecac
Commit
abf4ecac
authored
Feb 05, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add another code example for horizontal forms
parent
83cb1053
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/base-css.html
docs/base-css.html
+18
-1
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+16
-0
No files found.
docs/assets/bootstrap.zip
View file @
abf4ecac
No preview for this file type
docs/base-css.html
View file @
abf4ecac
...
@@ -869,7 +869,8 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -869,7 +869,8 @@ For example, <code>section</code> should be wrapped as inline.
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
<
form class="well"
>
<
form class="well"
>
<
label
>
Label name
<
/label
>
<
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"
>
<
label class="checkbox"
>
<
input type="checkbox"
>
Check me out
<
input type="checkbox"
>
Check me out
<
/label
>
<
/label
>
...
@@ -983,6 +984,22 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -983,6 +984,22 @@ For example, <code>section</code> should be wrapped as inline.
</div>
</div>
</fieldset>
</fieldset>
</form>
</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>
<div
class=
"span4"
>
<div
class=
"span4"
>
<h3>
What's included
</h3>
<h3>
What's included
</h3>
...
...
docs/templates/pages/base-css.mustache
View file @
abf4ecac
...
@@ -908,6 +908,22 @@
...
@@ -908,6 +908,22 @@
</div>
</div>
</fieldset>
</fieldset>
</form>
</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>
<div
class=
"span4"
>
<div
class=
"span4"
>
<h3>
{{
_i
}}
What's included
{{/
i
}}
</h3>
<h3>
{{
_i
}}
What's included
{{/
i
}}
</h3>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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