diff --git a/app/views/spree/admin/slides/_form.html.erb b/app/views/spree/admin/slides/_form.html.erb index 2b1a0df..d60da0e 100644 --- a/app/views/spree/admin/slides/_form.html.erb +++ b/app/views/spree/admin/slides/_form.html.erb @@ -18,7 +18,7 @@
<%= f.field_container :product_id do %> <%= label_tag :product_id, t(:product) %>
- <%= hidden_field_tag 'slide[product_id]', f.object.product_id.to_s, class: "product_picker fullwidth" %> + <%= select_tag 'slide[product_id]', options_for_select(Spree::Product.all.map { |pp| [pp.name, pp.id] }, f.object.product_id), class: 'd-block fullwidth form-control select2', include_blank: true %> <% end %>