%= render :partial => 'shared/product_sub_menu' %>
<%= t("Editing Product") %>
<%= render :partial => 'shared/product_tabs', :locals => {:current => "Variants"} %>
<%= t("Options") %> |
<%= t("Price") %> |
<%= t("SKU") %> |
<%= t("On Hand") %> |
<%= t("Action") %> |
<% @variants.each do |variant| %>
<% next if variant.option_values.empty? %>
<%= variant_options variant %> |
<%= variant.price %>
| <%= variant.sku %> |
<%= variant.on_hand %> |
<%= link_to_edit(variant) %>
<%= link_to_delete(variant) %>
|
<% end %>
<% unless @product.variants? %>
<%= t("None") %>. |
<% end %>
<% 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 %>