mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Improved translations for filter operators.
This commit is contained in:
parent
b11ef1d60d
commit
fc1bf5d037
5 changed files with 64 additions and 10 deletions
|
@ -37,7 +37,7 @@ class DateTimeConstraintType extends AbstractType
|
|||
'>' => '>',
|
||||
'<=' => '<=',
|
||||
'>=' => '>=',
|
||||
'BETWEEN' => 'BETWEEN',
|
||||
'filter.number_constraint.value.operator.BETWEEN' => 'BETWEEN',
|
||||
];
|
||||
|
||||
$builder->add('value1', DateTimeType::class, array_merge_recursive([
|
||||
|
|
|
@ -39,7 +39,7 @@ class NumberConstraintType extends AbstractType
|
|||
'>' => '>',
|
||||
'<=' => '<=',
|
||||
'>=' => '>=',
|
||||
'BETWEEN' => 'BETWEEN',
|
||||
'filter.number_constraint.value.operator.BETWEEN' => 'BETWEEN',
|
||||
];
|
||||
|
||||
$builder->add('value1', NumberType::class, array_merge_recursive([
|
||||
|
|
|
@ -27,13 +27,13 @@ class TextConstraintType extends AbstractType
|
|||
{
|
||||
$choices = [
|
||||
'' => '',
|
||||
'=' => '=',
|
||||
'!=' => '!=',
|
||||
'STARTS' => 'STARTS',
|
||||
'ENDS' => 'ENDS',
|
||||
'CONTAINS' => 'CONTAINS',
|
||||
'LIKE' => 'LIKE',
|
||||
'REGEX' => 'REGEX',
|
||||
'filter.text_constraint.value.operator.EQ' => '=',
|
||||
'filter.text_constraint.value.operator.NEQ' => '!=',
|
||||
'filter.text_constraint.value.operator.STARTS' => 'STARTS',
|
||||
'filter.text_constraint.value.operator.ENDS' => 'ENDS',
|
||||
'filter.text_constraint.value.operator.CONTAINS' => 'CONTAINS',
|
||||
'filter.text_constraint.value.operator.LIKE' => 'LIKE',
|
||||
'filter.text_constraint.value.operator.REGEX' => 'REGEX',
|
||||
];
|
||||
|
||||
$builder->add('value', SearchType::class, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue