Fixed #35598 -- Added SearchInput widget.

This commit is contained in:
Jeremy Thompson 2024-07-17 16:50:01 +01:00 committed by Sarah Boyce
parent 3f88089069
commit 30a60e8492
7 changed files with 34 additions and 1 deletions

View file

@ -558,6 +558,17 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
* ``template_name``: ``'django/forms/widgets/url.html'``
* Renders as: ``<input type="url" ...>``
``SearchInput``
~~~~~~~~~~~~~~~
.. versionadded:: 5.2
.. class:: SearchInput
* ``input_type``: ``'search'``
* ``template_name``: ``'django/forms/widgets/search.html'``
* Renders as: ``<input type="search" ...>``
``PasswordInput``
~~~~~~~~~~~~~~~~~