%= render :partial => 'spree/admin/shared/product_sub_menu' %> <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Variants'} %>
<%= t(:options) %> | <%= t(:price) %> | <%= t(:sku) %> | <% Spree::Variant.additional_fields.select { |f| f[:only].nil? || f[:only].include?(:variant) }.each do |field| %><%= t('activerecord.attributes.spree/variant.' + field[:name].downcase, :default => field[:name].titleize) %> | <% end %><%= t(:on_hand) %> | <%= t(:action) %> | |||
---|---|---|---|---|---|---|---|---|
<%= variant.options_text %> | <%= number_to_currency variant.price %> | <%= variant.sku %> | <% Spree::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) %> <%= t(:and) %> <%= link_to t(:option_values), admin_option_types_url %>
<% else %><%= link_to icon('add') + ' ' + t(:new_variant), new_admin_product_variant_url(@product), :remote => :true, 'data-update' => 'new_variant', :class => 'iconlink new' %> | <%= 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 %>