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
This commit is contained in:
parent
900178d795
commit
4091e6525d
|
@ -17,42 +17,54 @@ Django provides a representation of all the basic HTML widgets, plus some
|
||||||
commonly used groups of widgets:
|
commonly used groups of widgets:
|
||||||
|
|
||||||
.. class:: TextInput
|
.. class:: TextInput
|
||||||
|
|
||||||
Text input: ``<input type='text' ...>``
|
Text input: ``<input type='text' ...>``
|
||||||
|
|
||||||
.. class:: PasswordInput
|
.. class:: PasswordInput
|
||||||
|
|
||||||
Password input: ``<input type='password' ...>``
|
Password input: ``<input type='password' ...>``
|
||||||
|
|
||||||
.. class:: HiddenInput
|
.. class:: HiddenInput
|
||||||
|
|
||||||
Hidden input: ``<input type='hidden' ...>``
|
Hidden input: ``<input type='hidden' ...>``
|
||||||
|
|
||||||
.. class:: MultipleHiddenInput
|
.. class:: MultipleHiddenInput
|
||||||
|
|
||||||
Multiple ``<input type='hidden' ...>`` widgets.
|
Multiple ``<input type='hidden' ...>`` widgets.
|
||||||
|
|
||||||
.. class:: FileInput
|
.. class:: FileInput
|
||||||
|
|
||||||
File upload input: ``<input type='file' ...>``
|
File upload input: ``<input type='file' ...>``
|
||||||
|
|
||||||
.. class:: DateTimeInput
|
.. class:: DateTimeInput
|
||||||
|
|
||||||
Date/time input as a simple text box: ``<input type='text' ...>``
|
Date/time input as a simple text box: ``<input type='text' ...>``
|
||||||
|
|
||||||
**New in Django development version:**
|
**New in Django development version:**
|
||||||
|
|
||||||
.. class:: Textarea
|
.. class:: Textarea
|
||||||
|
|
||||||
Text area: ``<textarea>...</textarea>``
|
Text area: ``<textarea>...</textarea>``
|
||||||
|
|
||||||
.. class:: CheckboxInput
|
.. class:: CheckboxInput
|
||||||
|
|
||||||
Checkbox: ``<input type='checkbox' ...>``
|
Checkbox: ``<input type='checkbox' ...>``
|
||||||
|
|
||||||
.. class:: Select
|
.. class:: Select
|
||||||
|
|
||||||
Select widget: ``<select><option ...>...</select>``
|
Select widget: ``<select><option ...>...</select>``
|
||||||
|
|
||||||
.. class:: NullBooleanSelect
|
.. class:: NullBooleanSelect
|
||||||
|
|
||||||
Select widget with options 'Unknown', 'Yes' and 'No'
|
Select widget with options 'Unknown', 'Yes' and 'No'
|
||||||
|
|
||||||
.. class:: SelectMultiple
|
.. class:: SelectMultiple
|
||||||
|
|
||||||
Select widget allowing multiple selection: ``<select
|
Select widget allowing multiple selection: ``<select
|
||||||
multiple='multiple'>...</select>``
|
multiple='multiple'>...</select>``
|
||||||
|
|
||||||
.. class:: RadioSelect
|
.. class:: RadioSelect
|
||||||
|
|
||||||
A list of radio buttons:
|
A list of radio buttons:
|
||||||
|
|
||||||
.. code-block:: html
|
.. code-block:: html
|
||||||
|
@ -63,6 +75,7 @@ commonly used groups of widgets:
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
.. class:: CheckboxSelectMultiple
|
.. class:: CheckboxSelectMultiple
|
||||||
|
|
||||||
A list of checkboxes:
|
A list of checkboxes:
|
||||||
|
|
||||||
.. code-block:: html
|
.. code-block:: html
|
||||||
|
@ -73,9 +86,11 @@ commonly used groups of widgets:
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
.. class:: MultiWidget
|
.. class:: MultiWidget
|
||||||
|
|
||||||
Wrapper around multiple other widgets
|
Wrapper around multiple other widgets
|
||||||
|
|
||||||
.. class:: SplitDateTimeWidget
|
.. class:: SplitDateTimeWidget
|
||||||
|
|
||||||
Wrapper around two ``TextInput`` widgets: one for the date, and one for the
|
Wrapper around two ``TextInput`` widgets: one for the date, and one for the
|
||||||
time.
|
time.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue