Skip to content

Commit

Permalink
Refs #35601, Refs #35599 -- Made cosmetic edits to TelInput/ColorInpu…
Browse files Browse the repository at this point in the history
…t docs.
  • Loading branch information
felixxm authored Aug 2, 2024
1 parent a16f13a commit 6d3464c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
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

0 comments on commit 6d3464c

Please sign in to comment.