Sha256: f0a742376f8fb024babcfc2d5e04728b6c704e87cfe203bab5c646b13f28d44a

Contents?: true

Size: 1.96 KB

Versions: 129

Compression:

Stored size: 1.96 KB

Contents

<table class="show return-items-table table table-condensed table-bordered index">
  <thead>
    <tr>
      <th><%= Spree.t(:product) %></th>
      <th><%= Spree.t(:sku) %></th>
      <th><%= Spree.t(:pre_tax_amount) %></th>
      <th><%= Spree.t(:preferred_reimbursement_type) %></th>
      <th><%= Spree.t(:exchange_for) %></th>
      <th><%= Spree.t(:acceptance_errors) %></th>
      <% if show_decision %>
        <th></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% return_items.each do |return_item| %>
      <tr>
        <td>
          <div class="variant-name"><%= return_item.inventory_unit.variant.name %></div>
          <div class="variant-options"><%= return_item.inventory_unit.variant.options_text %></div>
        </td>
        <td>
          <%= return_item.inventory_unit.variant.sku %>
        </td>
        <td>
          <%= return_item.display_pre_tax_amount %>
        </td>
        <td>
          <%= reimbursement_type_name(return_item.preferred_reimbursement_type) %>
        </td>
        <td>
          <%= return_item.exchange_variant.try(:exchange_name) %>
        </td>
        <td>
          <%= return_item.acceptance_status_errors %>
        </td>
        <% if show_decision %>
          <td class='actions actions-2'>
            <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-success btn-sm', params: { "return_item[acceptance_status]" => 'accepted' }, "data-action" => 'save', title: Spree.t(:accept), method: 'put' } do %>
              <%= Spree.t(:accept) %>
            <% end if can?(:accept, return_item) %>
            <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-danger btn-sm', params: { "return_item[acceptance_status]" => 'rejected' }, "data-action" => 'remove', title: Spree.t(:reject), method: 'put' } do %>
              <%= Spree.t(:reject) %>
            <% end if can?(:reject, return_item) %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
spree_backend-3.0.7 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.6 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.5 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.4 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.3 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.2 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.1 app/views/spree/admin/customer_returns/_return_item_decision.html.erb
spree_backend-3.0.0 app/views/spree/admin/customer_returns/_return_item_decision.html.erb