%= 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| %><%= t("activerecord.attributes.variant." + field[:name].downcase, :default => 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) unless variant.deleted? %> <%= link_to_delete(variant) unless variant.deleted? %> |
<%= 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 icon('add') + ' ' + t("new_variant"), new_admin_product_variant_url(@product), :remote => :true, 'data-update' => 'new_variant', :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 %>