mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
This commit is contained in:
parent
a16f13a866
commit
6d3464cff0
@ -567,7 +567,7 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
|
|||||||
|
|
||||||
* ``input_type``: ``'color'``
|
* ``input_type``: ``'color'``
|
||||||
* ``template_name``:``'django/forms/widgets/color.html'``
|
* ``template_name``:``'django/forms/widgets/color.html'``
|
||||||
* Renders as: ``<input type='color' ...>``
|
* Renders as: ``<input type="color" ...>``
|
||||||
|
|
||||||
``SearchInput``
|
``SearchInput``
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
@ -581,7 +581,7 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
|
|||||||
* Renders as: ``<input type="search" ...>``
|
* Renders as: ``<input type="search" ...>``
|
||||||
|
|
||||||
``TelInput``
|
``TelInput``
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
.. versionadded:: 5.2
|
.. versionadded:: 5.2
|
||||||
|
|
||||||
@ -598,9 +598,7 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
|
|||||||
|
|
||||||
Additionally, you can add server-side validation to your form field with a
|
Additionally, you can add server-side validation to your form field with a
|
||||||
validator like :class:`~django.core.validators.RegexValidator` or via
|
validator like :class:`~django.core.validators.RegexValidator` or via
|
||||||
third-party packages, such as `django-phonenumber-field`_.
|
third-party packages, such as :pypi:`django-phonenumber-field`.
|
||||||
|
|
||||||
.. _django-phonenumber-field: https://django-phonenumber-field.readthedocs.io/en/latest/index.html
|
|
||||||
|
|
||||||
``PasswordInput``
|
``PasswordInput``
|
||||||
~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
@ -167,7 +167,7 @@ Forms
|
|||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
* The new :class:`~django.forms.ColorInput` form widget is for entering a color
|
* The new :class:`~django.forms.ColorInput` form widget is for entering a color
|
||||||
in ``rrggbb`` hexadecimal format and renders as ``<input type='color' ...>``.
|
in ``rrggbb`` hexadecimal format and renders as ``<input type="color" ...>``.
|
||||||
Some browsers support a visual color picker interface for this input type.
|
Some browsers support a visual color picker interface for this input type.
|
||||||
|
|
||||||
* The new :class:`~django.forms.SearchInput` form widget is for entering search
|
* The new :class:`~django.forms.SearchInput` form widget is for entering search
|
||||||
|
Loading…
x
Reference in New Issue
Block a user