diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 15:06:02 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 15:09:06 +0100 |
| commit | 303ce6d4d2f816f3f9e4eeb426c1ee3b2db2895c (patch) | |
| tree | 5c0cf1b8e52d8007513cbd16b0c3af96b40dea42 | |
| parent | 5befeee3be20cf50cdd72dd8d3c5823831f61190 (diff) | |
| download | Ishtar-303ce6d4d2f816f3f9e4eeb426c1ee3b2db2895c.tar.bz2 Ishtar-303ce6d4d2f816f3f9e4eeb426c1ee3b2db2895c.zip | |
📝 update search documentation (#6504)
| -rw-r--r-- | docs/fr/source/interface-utilisateur.rst | 4 | ||||
| -rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/fr/source/interface-utilisateur.rst b/docs/fr/source/interface-utilisateur.rst index 7af8e48f2..4578a0367 100644 --- a/docs/fr/source/interface-utilisateur.rst +++ b/docs/fr/source/interface-utilisateur.rst @@ -153,6 +153,10 @@ Si vous souhaitez obtenir des éléments avec un critère spécifique rempli, d **Exemple** : « ``material='*'`` » renvoie uniquement tous les éléments dont le matériau est défini, « ``-material='*'`` » renvoie tous les éléments dont le matériau n'est pas défini. +Ces informations sont valables pour les champs textuels. Pour les champs numériques, il faut utiliser l'opérateur plus grand que (cf. section suivante). + +**Exemple** : la recherche « ``longueur=>"0"`` » donnera toutes les valeurs supérieures ou égales à 0, donc toutes les longueurs complétées. + Plus grand que, plus petit que, avant, après ++++++++++++++++++++++++++++++++++++++++++++ diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 14249f4e8..6ae8d5d82 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -79,7 +79,8 @@ <h4>{% trans "Filled/empty" %}</h4> <p>{% blocktrans %}If you want to get items with a specific criteria filled, set the value to "*". Instead if you want to get items with a specific criteria empty, set the value to "*", then prefix the criterion with "-".{% endblocktrans %}</p> <p><em>{% blocktrans %}Example: "material='*'" will return only all items with a material set, "-material='*'" return all items with material not set.{% endblocktrans %}</em></p> - + <p>{% blocktrans %}This information applies to text fields. For numeric fields, use the greater than operator (see next section).{% endblocktrans %}</p> + <p><em>{% blocktrans %}Example: searching for "length=>'0'" will return all values greater than or equal to 0, i.e. all completed lengths.{% endblocktrans %}</em></p> <h4>{% trans "Greater than, lower than, before, after" %}</h4> <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> |
