From 5cbcccf39db6df90434dc333c2f30063cfed65af Mon Sep 17 00:00:00 2001 From: Basil Baumgartner Date: Wed, 24 Jul 2024 11:30:30 +0200 Subject: [PATCH] feat: added taxon to LimitsSearchType --- src/Form/Type/Settings/LimitsSearchType.php | 11 +++++++++++ src/Resources/translations/messages.en.yml | 1 + src/Resources/translations/messages.fr.yml | 1 + 3 files changed, 13 insertions(+) diff --git a/src/Form/Type/Settings/LimitsSearchType.php b/src/Form/Type/Settings/LimitsSearchType.php index 8e93e70e..cd63a134 100644 --- a/src/Form/Type/Settings/LimitsSearchType.php +++ b/src/Form/Type/Settings/LimitsSearchType.php @@ -49,6 +49,17 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'allow_delete' => true, ] ); + $builder->add( + 'taxon', + CollectionType::class, + [ + 'entry_type' => IntegerType::class, + 'label' => 'monsieurbiz_searchplugin.admin.setting_form.limit_taxon_' . $documentable->getIndexCode(), + 'required' => true, + 'allow_add' => true, + 'allow_delete' => true, + ] + ); } public function configureOptions(OptionsResolver $resolver): void diff --git a/src/Resources/translations/messages.en.yml b/src/Resources/translations/messages.en.yml index c3cde1be..2a155fc1 100644 --- a/src/Resources/translations/messages.en.yml +++ b/src/Resources/translations/messages.en.yml @@ -18,6 +18,7 @@ monsieurbiz_searchplugin: instant_search_enabled_monsieurbiz_product: 'Product: Instant search enabled' limit_search_monsieurbiz_product: 'Product: Available limits for search' limit_instant_search_monsieurbiz_product: 'Product: Available limits for instant search' + limit_taxon_monsieurbiz_product: 'Product: Available limits for category overview' form: query: 'Search' query_placeholder: 'Search…' diff --git a/src/Resources/translations/messages.fr.yml b/src/Resources/translations/messages.fr.yml index 85df4595..40426ed1 100644 --- a/src/Resources/translations/messages.fr.yml +++ b/src/Resources/translations/messages.fr.yml @@ -18,6 +18,7 @@ monsieurbiz_searchplugin: instant_search_enabled_monsieurbiz_product: 'Produit: Activer la recherche instantanée' limit_search_monsieurbiz_product: 'Produit: Limites disponibles pour la recherche' limit_instant_search_monsieurbiz_product: 'Produit: Limites disponibles pour la recherche instantanée' + limit_taxon_monsieurbiz_product: 'Produit: Limites disponibles pour les catégories' form: query: 'Recherche' query_placeholder: 'Rechercher…'