From aee12ba287c5d0ab5fb4f9c66d8ac101500f2390 Mon Sep 17 00:00:00 2001 From: Manon Bourgognon <manon.bourgognon@epitech.eu> Date: Wed, 16 Dec 2020 16:24:52 +0100 Subject: [PATCH] update with "today" value for end-value-[field] --- source/import_documentation/Components/Solid-Form-Search.rst | 3 ++- source/import_documentation/Widgets/Reference.rst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/import_documentation/Components/Solid-Form-Search.rst b/source/import_documentation/Components/Solid-Form-Search.rst index ca871b7..3bb477a 100644 --- a/source/import_documentation/Components/Solid-Form-Search.rst +++ b/source/import_documentation/Components/Solid-Form-Search.rst @@ -76,7 +76,7 @@ Attributes Allows to define the value of the first ``<input>`` to filter data. Only usable with ``solid-form-rangedate`` and ``solid-form-rangenumber``. - In ``solid-form-rangedate``, start-value can be defined to ``today``. + In ``solid-form-rangedate``, it can be defined to ``today``. ``end-value-[field]`` ~~~~~~~~~~~~~~~~~~~~~ @@ -84,6 +84,7 @@ Attributes Allows to define the value of the second ``<input>`` to filter data. Only usable with ``solid-form-rangedate`` and ``solid-form-rangenumber``. + In ``solid-form-rangedate``, it can be defined to ``today``. Widgets ------- diff --git a/source/import_documentation/Widgets/Reference.rst b/source/import_documentation/Widgets/Reference.rst index d9c89aa..622f233 100644 --- a/source/import_documentation/Widgets/Reference.rst +++ b/source/import_documentation/Widgets/Reference.rst @@ -41,7 +41,7 @@ A widget is built like this. - ``checkbox``: create a checkbox, which is checked if ``value == true``. - ``date``: set ``value`` in an ``<input>`` of type ``date``. - ``rangedate``: set 2 values in 2 ``<input>`` of type ``date``. Used for filtering with min and max. - Possible to add ``start-value-[field]`` and ``end-value-[field]`` attributes to set min and max values. Date format to follow : "YYYY-MM-DD". Possible to set the start-value to ``today``. + Possible to add ``start-value-[field]`` and ``end-value-[field]`` attributes to set min and max values. Date format to follow : "YYYY-MM-DD". Each attribute accepts ``today`` as value. - ``number``: set ``value`` in an ``<input>`` of type ``number``. - ``rangenumber``: set 2 values in 2 ``<input>`` of type ``number``. Used for filtering with min and max. Possible to add ``start-value-[field]`` and ``end-value-[field]`` attributes to set min and max values. -- GitLab