Sha256: 5f970ea4bf57c25066a1b0667d5a9e4f51ffdbb3a17d46ce7657358d832cfdf5

Contents?: true

Size: 1.55 KB

Versions: 28

Compression:

Stored size: 1.55 KB

Contents

<table class="index" data-hook="adjustments">
  <thead data-hook="adjustmment_head">
    <tr>
      <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
      <th><%= Spree.t(:description) %></th>
      <th><%= Spree.t(:amount) %></th>
      <th><%= Spree.t(:state) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @collection.each do |adjustment|
         @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')%>">
        <td class="align-center"><%= pretty_time(adjustment.created_at) %></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'>
          <%= link_to_edit adjustment, :no_text => true %>
          <%= link_to_delete adjustment, :no_text => true %>
          <%= link_to_toggle_adjustment_state @order, adjustment, :no_text => true %>
        </td>
      </tr>
    <% end %>
    <tr>
      <td class="align-center" colspan='4'>
        <%= button_to Spree.t(:open_all_adjustments), open_adjustments_admin_order_path(@order), :method => :get %>&nbsp;
        <%= button_to Spree.t(:close_all_adjustments), close_adjustments_admin_order_path(@order), :method => :get %>
      </td>
      <td class='actions'>&nbsp;</td>
    </tr>
  </tbody>
</table>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.11 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.10 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.13 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.9 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.8 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.12 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.7 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.11 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.10 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.6 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.5 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.9 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.4 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.8 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.3 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.7 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.2 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.0.6 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-2.1.1 app/views/spree/admin/adjustments/_adjustments_table.html.erb