mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-29 05:00:08 +02:00
Improved search page
This commit is contained in:
parent
6862d318f0
commit
97ab1f0492
4 changed files with 117 additions and 26 deletions
|
@ -30,10 +30,18 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||
|
||||
class PartSearchType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
$builder->add('keyword', SearchType::class);
|
||||
$builder->add('providers', ProviderSelectType::class);
|
||||
$builder->add('submit', SubmitType::class);
|
||||
$builder->add('keyword', SearchType::class, [
|
||||
'label' => 'info_providers.search.keyword',
|
||||
]);
|
||||
$builder->add('providers', ProviderSelectType::class, [
|
||||
'label' => 'info_providers.search.providers',
|
||||
'help' => 'info_providers.search.providers.help',
|
||||
]);
|
||||
|
||||
$builder->add('submit', SubmitType::class, [
|
||||
'label' => 'info_providers.search.submit'
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue