11060 - use SearchableDropdownComponent for producer names

This commit is contained in:
Ahmed Ejaz
2024-04-19 20:53:08 +05:00
committed by Rachel Arnould
parent c153ff75f3
commit f6efd47af2

View File

@@ -29,8 +29,11 @@
-# empty
- if producer_options.many?
%td.naked_inputs.align-left
= f.select :supplier_id, options_for_select(producer_options, product.supplier&.id), {},
data: { "controller": "tom-select", 'tom-select-placeholder-value': t('admin.products_v3.filters.search_for_producers')}
= render(SearchableDropdownComponent.new(form: f,
name: :supplier_id,
options: producer_options,
selected_option: product.supplier_id,
placeholder_value: t('admin.products_v3.filters.search_for_producers')))
%td.align-left
-# empty
%td.align-left