]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update docs & add example for #14221 14235/head
authorChris Rebert <code@rebertia.com>
Thu, 24 Jul 2014 20:57:39 +0000 (13:57 -0700)
committerChris Rebert <code@rebertia.com>
Thu, 24 Jul 2014 20:58:13 +0000 (13:58 -0700)
[skip sauce]

docs/_includes/css/forms.html

index 483c0e5884f079411ecfd1bcaec2e927aec587b9..5bb99f00c25817f79375ef6b296ad265f85d58da 100644 (file)
 
 
   <h2 id="forms-controls-static">Static control</h2>
-  <p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code>&lt;p&gt;</code>.</p>
+  <p>When you need to place plain text next to a form label within a form, use the <code>.form-control-static</code> class on a <code>&lt;p&gt;</code>.</p>
   <div class="bs-example">
     <form class="form-horizontal" role="form">
       <div class="form-group">
     </div>
   </div>
 </form>
+{% endhighlight %}
+  <div class="bs-example">
+    <form class="form-inline" role="form">
+      <div class="form-group">
+        <label class="sr-only">Email</label>
+        <p class="form-control-static">email@example.com</p>
+      </div>
+      <div class="form-group">
+        <label for="inputPassword2" class="sr-only">Password</label>
+        <input type="password" class="form-control" id="inputPassword2" placeholder="Password">
+      </div>
+      <button type="submit" class="btn btn-default">Confirm identity</button>
+    </form>
+  </div>
+{% highlight html %}
+<form class="form-inline" role="form">
+  <div class="form-group">
+    <label class="sr-only">Email</label>
+    <p class="form-control-static">email@example.com</p>
+  </div>
+  <div class="form-group">
+    <label for="inputPassword2" class="sr-only">Password</label>
+    <input type="password" class="form-control" id="inputPassword2" placeholder="Password">
+  </div>
+  <button type="submit" class="btn btn-default">Confirm identity</button>
+</form>
 {% endhighlight %}
 
   <h2 id="forms-control-focus">Input focus</h2>