Sha256: 797e3051e8d2ff16f50caf58511865cb677699257b56b57cd83aec7d4d586171

Contents?: true

Size: 910 Bytes

Versions: 4

Compression:

Stored size: 910 Bytes

Contents

<%
  @edit_url = edit_admin_order_adjustment_path(@order, adjustment)
  @delete_url = admin_order_adjustment_path(@order, adjustment)
%>
<tr id="<%= spree_dom_id(adjustment) %>"
    data-hook="adjustment_row"
    class="<%= cycle('odd', 'even')%> <%= "adjustment-ineligible" if !adjustment.eligible? %>"
    >
  <td class="align-center"><%= display_adjustable(adjustment.adjustable) %></td>
  <td class="align-center"><%= adjustment.label %></td>
  <td class="align-center"><%= adjustment.display_amount.to_html %></td>
  <td class="align-center"><%= adjustment_state(adjustment) %></td>
  <td class='actions'>
    <% unless adjustment.finalized? %>
      <% if can?(:update, adjustment) %>
        <%= link_to_edit adjustment, :no_text => true %>
      <% end %>

      <% if can?(:destroy, adjustment) %>
        <%= link_to_delete adjustment, :no_text => true %>
      <% end %>
    <% end %>
  </td>
</tr>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/adjustments/_adjustment.html.erb
solidus_backend-2.1.0 app/views/spree/admin/adjustments/_adjustment.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/adjustments/_adjustment.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/adjustments/_adjustment.html.erb