">
<%= part.name %> |
<% if part.has_variants? %>
<%- opts = part.variants.map {|v| [variant_options(v), v.id] } %>
<%= select_tag "part[id]",
options_for_select(opts),
include_blank: Spree.t(:user_selectable)
%>
<% else %>
<%= hidden_field_tag "part[id]", part.master.id %>
<%= Spree.t(:no_variants) %>
<% end %>
|
<%= text_field_tag "part[count]", 1 %> |
<%= image_tag "spinner.gif", :style => "display:none", :class => "spinner" %>
<%= link_to(icon('add') + ' ' + Spree.t(:select),
admin_product_parts_path(product),
:data => { 'target' => dom_id(part), 'master-variant-id' => part.master.id},
:class => "add_product_part_link") %>
|
<% end %>
<% if @available_products.empty? %>