Sha256: 69bd7717110f3be6853556432a5f9a573ff520dd82e8fbcf22d984df13fd8d7f

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 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>  
  <% @additional_fields.each do |field| %>
  <tr>
    <td><%= t(field.titleize) %>: </td>
    <td><%= f.text_field field %></td>
  </tr>  
  <% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-0.5.0 app/views/admin/variants/_form.html.erb
spree-0.5.1 app/views/admin/variants/_form.html.erb