<%
  @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"
    >
  <td><%= display_adjustable(adjustment.adjustable) %></td>
  <td><%= adjustment.label %></td>
  <td><%= adjustment.display_amount.to_html %></td>
  <td><%= 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>
