summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
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
commit2828a7ff52a5772b430e2c5af5603a1be15ece0b (patch)
tree4d5a5e04eef1f73fe5a684e718938ce28be03ed0 /ishtar_common/templates
parent5b4602b39ca38460cae3224676f3ec03277f0639 (diff)
downloadIshtar-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.html4
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 "=&gt;" or "=&lt;", depending on the desired result.{% endblocktrans %}</p>
<p><em>{% blocktrans %}Example: the search "year=&gt;'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=&gt;'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 "&nbsp;||&nbsp;".{% 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>