id="listing_transfer_items">
<%= Spree.t(:item) %> |
<%= Spree.t(:options) %> |
<% if show_expected %><%= Spree.t(:expected) %> | <% end %>
<% if show_received %><%= Spree.t(:received) %> | <% end %>
<% if show_actions %> | <% end %>
<% transfer_items.each do |item| %>
<%- variant = item.variant %>
<%= image_tag(variant.display_image(fallback: false).attachment(:small)) %>
<% @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 %>
>
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/transfer_item')) %>