<%= render 'spree/admin/shared/image', image: variant.display_image(fallback: false), size: :small %>
<% if variant.deleted? %>
<%= I18n.t(:deleted, scope: [:spree, :hints, "spree/variant"]) %>
<%= deleted_variant_admin_hint(variant) %>
|
<% end %>
<% @variant_display_attributes.each do |display_attribute| %>
<%= Spree.t(display_attribute[:translation_key]) %> |
<%= variant.send(display_attribute[:attr_name]) %>
|
<% end %>
|
<% variant.option_values.sort_by(&:option_type_name).each do |option_value| %>
<%= option_value.option_type_presentation %>
|
<%= option_value.presentation %> |
<% end %>
|
<% if show_expected %><%= render partial: 'transfer_item_actions', locals: { item: item, show_actions: show_actions, quantity_type: 'expected'} %><% end %>
<% if show_received %><%= render partial: 'transfer_item_actions', locals: { item: item, show_actions: show_actions, quantity_type: 'received'} %><% end %>
<% end %>