From 946c3cf7342cc40c2d8e3d865c96a4ec990f76f4 Mon Sep 17 00:00:00 2001 From: arjunomray Date: Fri, 26 Jul 2024 07:39:19 +0200 Subject: Fixed #35599 -- Added ColorInput widget. --- docs/ref/forms/widgets.txt | 11 +++++++++++ docs/releases/5.2.txt | 4 ++++ 2 files changed, 15 insertions(+) (limited to 'docs') diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 1a868c32fa..bd970f1517 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -558,6 +558,17 @@ These widgets make use of the HTML elements ``input`` and ``textarea``. * ``template_name``: ``'django/forms/widgets/url.html'`` * Renders as: ```` +``ColorInput`` +~~~~~~~~~~~~~~ + +.. versionadded:: 5.2 + +.. class:: ColorInput + + * ``input_type``: ``'color'`` + * ``template_name``:``'django/forms/widgets/color.html'`` + * Renders as: ```` + ``SearchInput`` ~~~~~~~~~~~~~~~ diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt index b732e98c9f..cb57b9255c 100644 --- a/docs/releases/5.2.txt +++ b/docs/releases/5.2.txt @@ -166,6 +166,10 @@ File Uploads Forms ~~~~~ +* The new :class:`~django.forms.ColorInput` form widget is for entering a color + in ``rrggbb`` hexadecimal format and renders as ````. + Some browsers support a visual color picker interface for this input type. + * The new :class:`~django.forms.SearchInput` form widget is for entering search queries and renders as ````. -- cgit v1.3