Skip to content

Commit

Permalink
Merge pull request #219 from seizan8/feat/adding-taxon-limits-to-sett…
Browse files Browse the repository at this point in the history
…ing-form

feat: added taxon to LimitsSearchType
  • Loading branch information
maximehuran authored Sep 23, 2024
2 parents a58db2b + 5cbcccf commit 1c30219
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Form/Type/Settings/LimitsSearchType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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…'
Expand Down
1 change: 1 addition & 0 deletions src/Resources/translations/messages.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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…'
Expand Down

0 comments on commit 1c30219

Please sign in to comment.