Sha256: 39a4285a31cbe600e26957974f1dce0963f95e9b7f90cdbbb0ea85e1fd15ee42
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
<%= render :partial => 'shared/product_sub_menu' %> <h1><%= t("Editing Product") %></h1> <%= render :partial => 'shared/product_tabs', :locals => {:current => "Variants"} %> <table class="full-table"> <thead> <tr> <th><%= t("Options") %></th> <th><%= t("Price") %></th> <th><%= t("SKU") %></th> <% @additional_fields.each do |field| %> <th><%= field.titleize %></th> <% end %> <th><%= t("On Hand") %></th> <th><%= t("Action") %></th> </tr> </thead> <tbody> <% @variants.each do |variant| %> <!-- you can skip variant with no options: that's just the default variant that all products have --> <% next if variant.option_values.empty? %> <tr> <td><%= variant_options variant %></td> <td><%= variant.price %> <td><%= variant.sku %></td> <% @additional_fields.each do |field| %> <td><%= variant[field] %></td> <% end %> <td><%= variant.on_hand %></td> <td valign="top"> <%= link_to_edit(variant) %> <%= link_to_delete(variant) %> </td> </tr> <% end %> <% unless @product.variants? %> <tr><td colspan="5"><%= t("None") %>.</td></tr> <% end %> </tbody> </table> <% unless @product.options.empty? %> <div id="variants"/> <%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %> <br/> <span id="new_var_link"> <%= 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')" %> </span> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-0.5.0 | app/views/admin/variants/index.html.erb |
spree-0.5.1 | app/views/admin/variants/index.html.erb |