diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-09-26 12:39:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-09-26 13:19:55 +0200 |
commit | 2828a7ff52a5772b430e2c5af5603a1be15ece0b (patch) | |
tree | 4d5a5e04eef1f73fe5a684e718938ce28be03ed0 /ishtar_common/templates | |
parent | 5b4602b39ca38460cae3224676f3ec03277f0639 (diff) | |
download | Ishtar-2828a7ff52a5772b430e2c5af5603a1be15ece0b.tar.bz2 Ishtar-2828a7ff52a5772b430e2c5af5603a1be15ece0b.zip |
✨ search online documentation: add documentation for "today" keyword
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index e6808833e..d8ad26d8d 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -83,6 +83,10 @@ <p>{% blocktrans %}For searches such as larger, smaller (for numeric fields), before, after (for date fields), add the criterion from the form, then change the "=" sign to "=>" or "=<", depending on the desired result.{% endblocktrans %}</p> <p><em>{% blocktrans %}Example: the search "year=>'2019'" will return all items from 2019 and onwards.{% endblocktrans %}</em></p> + <h4>{% trans "Today" %}</h4> + <p>{% blocktrans %}Searches can be performed in relation to today's date using the keyword "today". "+" and "-" sign can be used in order to add or remove day to the current date.{% endblocktrans %}</p> + <p><em>{% blocktrans %}Example: the search "created=>'today-10'" will return all items created in the last 10 days.{% endblocktrans %}</em></p> + <h4>{% trans "OR operator" %}</h4> <p>{% blocktrans %}An OR operator is available for searches that include, for example, different criteria. This operator uses the notation " || ".{% endblocktrans %}</p> <p><em>{% blocktrans %}Example: the search "material='Metal' || object-type='ingot'" will include in the search all metallic finds as well as all finds whose object type is ingot.{% endblocktrans %}</em></p> |