summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-27 05:56:57 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-27 05:56:57 +0000
commit4091e6525d030d274787d112c997c6bfd6e1c74a (patch)
treeb7d3c0f27ddce39c9c3dbaa9315c1f73744a4708 /docs/ref/forms
parent900178d79594898f1d924c69800d48b6232bc41f (diff)
Fixed #8518 -- Fixed some markup problems in the widget documentation. Thanks,
Thejawsi Puthraya. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/widgets.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index 184515ec95..a7d35f4ddd 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -17,42 +17,54 @@ Django provides a representation of all the basic HTML widgets, plus some
commonly used groups of widgets:
.. class:: TextInput
+
Text input: ``<input type='text' ...>``
.. class:: PasswordInput
+
Password input: ``<input type='password' ...>``
.. class:: HiddenInput
+
Hidden input: ``<input type='hidden' ...>``
.. class:: MultipleHiddenInput
+
Multiple ``<input type='hidden' ...>`` widgets.
.. class:: FileInput
+
File upload input: ``<input type='file' ...>``
.. class:: DateTimeInput
+
Date/time input as a simple text box: ``<input type='text' ...>``
**New in Django development version:**
.. class:: Textarea
+
Text area: ``<textarea>...</textarea>``
.. class:: CheckboxInput
+
Checkbox: ``<input type='checkbox' ...>``
.. class:: Select
+
Select widget: ``<select><option ...>...</select>``
.. class:: NullBooleanSelect
+
Select widget with options 'Unknown', 'Yes' and 'No'
.. class:: SelectMultiple
+
Select widget allowing multiple selection: ``<select
multiple='multiple'>...</select>``
.. class:: RadioSelect
+
A list of radio buttons:
.. code-block:: html
@@ -63,6 +75,7 @@ commonly used groups of widgets:
</ul>
.. class:: CheckboxSelectMultiple
+
A list of checkboxes:
.. code-block:: html
@@ -73,9 +86,11 @@ commonly used groups of widgets:
</ul>
.. class:: MultiWidget
+
Wrapper around multiple other widgets
.. class:: SplitDateTimeWidget
+
Wrapper around two ``TextInput`` widgets: one for the date, and one for the
time.