mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 10:24:50 +02:00
Added some more filter possibilities.
This commit is contained in:
parent
96cd746f60
commit
28c09eb51d
5 changed files with 68 additions and 4 deletions
|
@ -156,6 +156,9 @@ class PartFilterType extends AbstractType
|
|||
'min' => 0,
|
||||
]);
|
||||
|
||||
$builder->add('obsolete', BooleanConstraintType::class, [
|
||||
'label' => 'orderdetails.edit.obsolete'
|
||||
]);
|
||||
|
||||
/*
|
||||
* Stocks tabs
|
||||
|
@ -194,6 +197,10 @@ class PartFilterType extends AbstractType
|
|||
'input_type' => DateType::class,
|
||||
]);
|
||||
|
||||
$builder->add('lotDescription', TextConstraintType::class, [
|
||||
'label' => 'part.filter.lotDescription',
|
||||
]);
|
||||
|
||||
/**
|
||||
* Attachments count
|
||||
*/
|
||||
|
@ -215,7 +222,7 @@ class PartFilterType extends AbstractType
|
|||
$constraint_prototype = new ParameterConstraint();
|
||||
|
||||
$builder->add('parameters', CollectionType::class, [
|
||||
'label' => 'parameter.label',
|
||||
'label' => false,
|
||||
'entry_type' => ParameterConstraintType::class,
|
||||
'allow_delete' => true,
|
||||
'allow_add' => true,
|
||||
|
@ -224,6 +231,12 @@ class PartFilterType extends AbstractType
|
|||
'empty_data' => $constraint_prototype,
|
||||
]);
|
||||
|
||||
$builder->add('parametersCount', NumberConstraintType::class, [
|
||||
'label' => 'part.filter.parameters_count',
|
||||
'step' => 1,
|
||||
'min' => 0,
|
||||
]);
|
||||
|
||||
$builder->add('submit', SubmitType::class, [
|
||||
'label' => 'filter.submit',
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue