<%= render :partial => 'shared/product_sub_menu' %>

<%= t("Editing Product") %>

<%= render :partial => 'shared/product_tabs', :locals => {:current => "Variants"} %> <% @variants.each do |variant| %> <% next if variant.option_values.empty? %> <% end %> <% unless @product.variants? %> <% end %>
<%= t("Options") %> <%= t("Price") %> <%= t("SKU") %> <%= t("On Hand") %> <%= t("Action") %>
<%= variant_options variant %> <%= variant.price %> <%= variant.sku %> <%= variant.on_hand %> <%= link_to_edit(variant) %>   <%= link_to_delete(variant) %>
<%= t("None") %>.
<% unless @product.options.empty? %>
<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>
<%= link_to_remote t("New Variant"), :url => new_admin_product_variant_url(@product), :method => :get, :update => "variants", :before => "Element.hide('new_var_link');Element.show('busy_indicator')", :complete => "Element.hide('busy_indicator')" %> <% end %>