<%= render :partial => 'spree/admin/shared/product_sub_menu' %> <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Variants'} %> <%# Place for new variant form %>
<% if @variants.any? %> <% @variants.each do |variant| %> data-hook="variants_row" class="<%= cycle('odd', 'even')%>"> <% end %> <% unless @product.has_variants? %> <% end %>
<%= Spree.t(:options) %> <%= Spree.t(:price) %> <%= Spree.t(:sku) %>
<%= variant.options_text %> <%= variant.display_price.to_html %> <%= variant.sku %> <%= link_to_edit(variant, :no_text => true) unless variant.deleted? %>   <%= link_to_delete(variant, :no_text => true) unless variant.deleted? %>
<%= Spree.t(:none) %>
<% else %>
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/variant')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_product_variant_path(@product) %>!
<% end %> <% if @product.empty_option_values? %>

<%= Spree.t(:to_add_variants_you_must_first_define) %> <%= link_to Spree.t(:option_types), admin_product_url(@product) %> <%= Spree.t(:and) %> <%= link_to Spree.t(:option_values), admin_option_types_url %>

<% else %> <% content_for :page_actions do %> <% end %> <% end %>