summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/fr/source/interface-utilisateur.rst4
-rw-r--r--ishtar_common/templates/widgets/search_input.html3
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 "=&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>