Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/ref/forms/widgets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.

* ``input_type``: ``'color'``
* ``template_name``:``'django/forms/widgets/color.html'``
* Renders as: ``<input type='color' ...>``
* Renders as: ``<input type="color" ...>``

``SearchInput``
~~~~~~~~~~~~~~~
Expand All @@ -581,7 +581,7 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
* Renders as: ``<input type="search" ...>``

``TelInput``
~~~~~~~~~~~~~~
~~~~~~~~~~~~

.. versionadded:: 5.2

Expand All @@ -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
validator like :class:`~django.core.validators.RegexValidator` or via
third-party packages, such as `django-phonenumber-field`_.

.. _django-phonenumber-field: https://django-phonenumber-field.readthedocs.io/en/latest/index.html
third-party packages, such as :pypi:`django-phonenumber-field`.

``PasswordInput``
~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/5.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Forms
~~~~~

* 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.

* The new :class:`~django.forms.SearchInput` form widget is for entering search
Expand Down