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 %> <%= button_to Spree.t(:close_all_adjustments), close_adjustments_admin_order_path(@order), :method => :get %> </td> <td class='actions'> </td> </tr> </tbody> </table>
Version data entries
28 entries across 28 versions & 1 rubygems