mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
11060 - use SearchableDropdownComponent for producer names
This commit is contained in:
committed by
Rachel Arnould
parent
c153ff75f3
commit
f6efd47af2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user