From: Mark Otto Date: Sat, 27 May 2017 04:54:25 +0000 (-0700) Subject: Update forms docs to add more headings and move the huge type example into a table X-Git-Tag: v4.0.0-beta~147^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e6644a20685d1276e569020cb930c635df9acd7;p=thirdparty%2Fbootstrap.git Update forms docs to add more headings and move the huge type example into a table --- diff --git a/docs/components/forms.md b/docs/components/forms.md index 51d9e8f908..d71615976a 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -18,6 +18,8 @@ Bootstrap's form controls expand on [our Rebooted form styles]({{ site.baseurl } Be sure to use an appropriate `type` attribute on all inputs (e.g., `email` for email address or `number` for numerical information). +### Example + {% example html %}
@@ -89,6 +91,8 @@ Be sure to use an appropriate `type` attribute on all inputs (e.g., `email` for {% endexample %} +### Supported controls + Below is a complete list of the specific form controls supported by Bootstrap and the classes that customize them. Additional documentation is available for each group. @@ -167,88 +171,23 @@ Below is a complete list of the specific form controls supported by Bootstrap an ### Textual inputs -Here are examples of `.form-control` applied to each textual HTML5 `` `type`. - -{% example html %} -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-{% endexample %} +Here are examples of `.form-control` applied to each textual HTML5 `` `type` (meaning, almost everything except the file, checkbox, and radio inputs). + +| Type | Example | +| --- | --- | +| `text` | | +| `search` | | +| `email` | | +| `url` | | +| `tel` | | +| `password` | | +| `number` | | +| `datetime-local` | | +| `date` | | +| `month` | | +| `week` | | +| `time` | | +| `color` | | ## Form layouts