Sha256: 6ee0091f4cef95fb7def9991f1a58803ebde87fb5ddc76a20163d781dc7a0053
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
<table> <% if @variant.new_record? %> <% @product.options.each do |option| %> <tr> <td><%= option.option_type.presentation %>: </td> <td> <%= select(:new_variant, option.option_type.presentation, option.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] }) %> </td> </tr> <% end %> <% else %> <% @variant.option_values.each do |option_value| %> <tr> <td><%= option_value.option_type.presentation %>: </td> <td><%= option_value.presentation %></td> </tr> <% end %> <% end %> <tr> <td><%= t("sku") %>: </td> <td><%= f.text_field :sku %></td> </tr> <tr> <td><%= t("price") %>: </td> <td><%= f.text_field :price %></td> </tr> <tr> <td><%= t("on_hand") %>: </td> <td><%= f.text_field :on_hand %></td> </tr> <% Variant.additional_fields.select{|f| f[:only].nil? || f[:only].include?(:variant) }.each do |field| %> <%= render :partial => "shared/additional_field", :locals => {:field => field, :f => f} %> <% end %> </table>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree-0.6.0 | app/views/admin/variants/_form.html.erb |
spree-0.7.1 | app/views/admin/variants/_form.html.erb |
spree-0.7.0 | app/views/admin/variants/_form.html.erb |