%= render :partial => 'admin/shared/product_sub_menu' %> <%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Variants"} %>
<%= t("options") %> | <%= t("price") %> | <%= t("sku") %> | <% Variant.additional_fields.select{|f| f[:only].nil? || f[:only].include?(:variant) }.each do |field| %><%= field[:name].titleize %> | <% end %><%= t("on_hand") %> | <%= t("action") %> |
---|---|---|---|---|---|
<%= variant_options variant %> | <%= variant.price %> | <%= variant.sku %> | <% Variant.additional_fields.select{|f| f[:only].nil? || f[:only].include?(:variant) }.each do |field| %><%= variant[field[:name].gsub(" ", "_").downcase] %> | <% end %><%= variant.on_hand %> | <%= link_to_edit(variant) if variant.deleted_at.nil? %> <%= link_to_delete(variant) if variant.deleted_at.nil? %> |
<%= t("none") %>. |
<%= t("to_add_variants_you_must_first_define") %> <%= link_to t("option_types"), selected_admin_product_option_types_url(@product) %>
<% else %><%= link_to_remote icon('add') + ' ' + 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')"}, :class => 'iconlink' %> | <%= link_to @deleted.blank? ? t("show_deleted") : t("show_active"), admin_product_variants_url(@product, :deleted => @deleted.blank? ? "on" : "off") %>
<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %> <% end %>