mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Fix .form-inline docs example
Make sample code match live example Move <label> out of .input-group into .form-group instead Change field from Email to Username to make it less redundant, slightly more realistic Add <label> for Username field for consistency Fixes #15118
This commit is contained in:
parent
806490499a
commit
e5c888f4a2
@ -72,9 +72,10 @@
|
|||||||
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label class="sr-only" for="exampleInputUsername2">Username</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">@</div>
|
<div class="input-group-addon">@</div>
|
||||||
<input class="form-control" type="email" placeholder="Enter email">
|
<input type="text" class="form-control" id="exampleInputUsername2" placeholder="Enter username">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -92,10 +93,14 @@
|
|||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<form class="form-inline" role="form">
|
<form class="form-inline" role="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label class="sr-only" for="exampleInputEmail2">Email address</label>
|
||||||
|
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only" for="exampleInputUsername2">Username</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<label class="sr-only" for="exampleInputEmail2">Email address</label>
|
|
||||||
<div class="input-group-addon">@</div>
|
<div class="input-group-addon">@</div>
|
||||||
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
<input type="text" class="form-control" id="exampleInputUsername2" placeholder="Enter username">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user