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
83cb1053
Commit
83cb1053
authored
Feb 05, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding code snippets to form examples
parent
9b5b8460
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
6 deletions
+53
-6
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/base-css.html
docs/base-css.html
+26
-3
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+27
-3
No files found.
docs/assets/bootstrap.zip
View file @
83cb1053
No preview for this file type
docs/base-css.html
View file @
83cb1053
...
@@ -852,9 +852,9 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -852,9 +852,9 @@ For example, <code>section</code> should be wrapped as inline.
<h2>
Example forms
<small>
using just form controls, no extra markup
</small></h2>
<h2>
Example forms
<small>
using just form controls, no extra markup
</small></h2>
<h3>
Basic form
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
Basic form
</h3>
<p>
With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.
</p>
<p>
With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -866,11 +866,21 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -866,11 +866,21 @@ For example, <code>section</code> should be wrapped as inline.
</label>
</label>
<button
type=
"submit"
class=
"btn"
>
Submit
</button>
<button
type=
"submit"
class=
"btn"
>
Submit
</button>
</form>
</form>
<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
>
<
label class="checkbox"
>
<
input type="checkbox"
>
Check me out
<
/label
>
<
button type="submit" class="btn"
>
Submit
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
<h3>
Search form
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
Search form
</h3>
<p>
Reflecting default WebKit styles, just add
<code>
.form-search
</code>
for extra rounded search fields.
</p>
<p>
Reflecting default WebKit styles, just add
<code>
.form-search
</code>
for extra rounded search fields.
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -878,11 +888,17 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -878,11 +888,17 @@ For example, <code>section</code> should be wrapped as inline.
<input
type=
"text"
class=
"input-medium search-query"
>
<input
type=
"text"
class=
"input-medium search-query"
>
<button
type=
"submit"
class=
"btn"
>
Search
</button>
<button
type=
"submit"
class=
"btn"
>
Search
</button>
</form>
</form>
<pre
class=
"prettyprint linenums"
>
<
form class="well form-search"
>
<
input type="text" class="input-medium search-query"
>
<
button type="submit" class="btn"
>
Search
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
<h3>
Inline form
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
Inline form
</h3>
<p>
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
</p>
<p>
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -891,6 +907,13 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -891,6 +907,13 @@ For example, <code>section</code> should be wrapped as inline.
<input
type=
"password"
class=
"input-small"
placeholder=
"Password"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"Password"
>
<button
type=
"submit"
class=
"btn"
>
Go
</button>
<button
type=
"submit"
class=
"btn"
>
Go
</button>
</form>
</form>
<pre
class=
"prettyprint linenums"
>
<
form class="well form-inline"
>
<
input type="text" class="input-small" placeholder="Email"
>
<
input type="password" class="input-small" placeholder="Password"
>
<
button type="submit" class="btn"
>
Go
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
...
...
docs/templates/pages/base-css.mustache
View file @
83cb1053
...
@@ -776,9 +776,9 @@
...
@@ -776,9 +776,9 @@
<h2>
{{
_i
}}
Example forms
<small>
using just form controls, no extra markup
</small>
{{/
i
}}
</h2>
<h2>
{{
_i
}}
Example forms
<small>
using just form controls, no extra markup
</small>
{{/
i
}}
</h2>
<h3>
{{
_i
}}
Basic form
{{/
i
}}
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
{{
_i
}}
Basic form
{{/
i
}}
</h3>
<p>
{{
_i
}}
With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.
{{/
i
}}
</p>
<p>
{{
_i
}}
With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.
{{/
i
}}
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -790,11 +790,22 @@
...
@@ -790,11 +790,22 @@
</label>
</label>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Submit
{{/
i
}}
</button>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Submit
{{/
i
}}
</button>
</form>
</form>
<pre
class=
"prettyprint linenums"
>
<
form class="well"
>
<
label
>
{{
_i
}}
Label name
{{/
i
}}
<
/label
>
<
input type="text" class="span3" placeholder="
{{
_i
}}
Type something…
{{/
i
}}
"
>
<
span class="help-inline"
>
Associated help text!
<
/span
>
<
label class="checkbox"
>
<
input type="checkbox"
>
{{
_i
}}
Check me out
{{/
i
}}
<
/label
>
<
button type="submit" class="btn"
>
{{
_i
}}
Submit
{{/
i
}}
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
<h3>
{{
_i
}}
Search form
{{/
i
}}
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
{{
_i
}}
Search form
{{/
i
}}
</h3>
<p>
{{
_i
}}
Reflecting default WebKit styles, just add
<code>
.form-search
</code>
for extra rounded search fields.
{{/
i
}}
</p>
<p>
{{
_i
}}
Reflecting default WebKit styles, just add
<code>
.form-search
</code>
for extra rounded search fields.
{{/
i
}}
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -802,11 +813,17 @@
...
@@ -802,11 +813,17 @@
<input
type=
"text"
class=
"input-medium search-query"
>
<input
type=
"text"
class=
"input-medium search-query"
>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Search
{{/
i
}}
</button>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Search
{{/
i
}}
</button>
</form>
</form>
<pre
class=
"prettyprint linenums"
>
<
form class="well form-search"
>
<
input type="text" class="input-medium search-query"
>
<
button type="submit" class="btn"
>
{{
_i
}}
Search
{{/
i
}}
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
<h3>
{{
_i
}}
Inline form
{{/
i
}}
</h3>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h3>
{{
_i
}}
Inline form
{{/
i
}}
</h3>
<p>
{{
_i
}}
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
{{/
i
}}
</p>
<p>
{{
_i
}}
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
{{/
i
}}
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
...
@@ -815,6 +832,13 @@
...
@@ -815,6 +832,13 @@
<input
type=
"password"
class=
"input-small"
placeholder=
"
{{
_i
}}
Password
{{/
i
}}
"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"
{{
_i
}}
Password
{{/
i
}}
"
>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Go
{{/
i
}}
</button>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Go
{{/
i
}}
</button>
</form>
</form>
<pre
class=
"prettyprint linenums"
>
<
form class="well form-inline"
>
<
input type="text" class="input-small" placeholder="
{{
_i
}}
Email
{{/
i
}}
"
>
<
input type="password" class="input-small" placeholder="
{{
_i
}}
Password
{{/
i
}}
"
>
<
button type="submit" class="btn"
>
{{
_i
}}
Go
{{/
i
}}
<
/button
>
<
/form
>
</pre>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
...
...
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