Sha256: 9c34ac0b0fd1cc130e4d4901bf1f2be08817731849fe83d3454cb4e4102748ad

Contents?: true

Size: 958 Bytes

Versions: 11

Compression:

Stored size: 958 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) %>" class="<%= adjustment.eligible? ? 'eligible' : 'ineligible' %>" data-hook="adjustment_row">
  <td>
    <%= display_adjustable(adjustment.adjustable) %>
  </td>
  <td>
    <%= adjustment.label %>
  </td>
  <td class="text-center">
    <%= adjustment.display_amount.to_html %>
  </td>
  <td class="text-center">
    <span class="text-lowercase badge badge-<%= adjustment.state %>">
      <%= Spree.t("state_machine_states.#{adjustment.state}") %>
    </span>
  </td>
  <td class="actions">
    <span class="d-flex justify-content-center">
      <% if adjustment.open? %>
        <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
        <%= link_to_delete(adjustment, no_text: true) if can?(:delete, adjustment) %>
      <% end %>
    </span>
  </td>
</tr>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_backend-4.3.3 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.2 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.4.1 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.4.0 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.1 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.0 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.0.rc3 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.0.rc2 app/views/spree/admin/adjustments/_adjustment.html.erb
spree_backend-4.3.0.rc1 app/views/spree/admin/adjustments/_adjustment.html.erb