Increase time limit on batch search and add option to priorities which fields to choose

This commit is contained in:
barisgit 2025-08-04 23:34:20 +02:00 committed by Jan Böhmer
parent 74be016b68
commit 4da403569c
6 changed files with 338 additions and 107 deletions

View file

@ -24,6 +24,7 @@ namespace App\Form\InfoProviderSystem;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@ -47,6 +48,19 @@ class FieldToProviderMappingType extends AbstractType
'help' => 'info_providers.bulk_search.providers.help',
'required' => false,
]);
$builder->add('priority', IntegerType::class, [
'label' => 'info_providers.bulk_search.priority',
'help' => 'info_providers.bulk_search.priority.help',
'required' => false,
'data' => 1, // Default priority
'attr' => [
'min' => 1,
'max' => 10,
'class' => 'form-control-sm',
'style' => 'width: 80px;'
]
]);
}
public function configureOptions(OptionsResolver $resolver): void