mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
23 lines
981 B
Plaintext
23 lines
981 B
Plaintext
%table.index{"data-hook" => "adjustments"}
|
|
%thead{"data-hook" => "adjustmment_head"}
|
|
%tr
|
|
%th= "#{t('spree.date')}/#{t('spree.time')}"
|
|
%th= t(:description)
|
|
%th= t(:amount)
|
|
%th= t(:included_tax)
|
|
%th.actions
|
|
%tbody
|
|
- @collection.each do |adjustment|
|
|
- @edit_url = edit_admin_order_adjustment_path(@order, adjustment)
|
|
- @delete_url = admin_order_adjustment_path(@order, adjustment)
|
|
- tr_class = cycle('odd', 'even')
|
|
- tr_id = spree_dom_id(adjustment)
|
|
%tr{:class => tr_class, "data-hook" => "adjustment_row", :id => tr_id}
|
|
%td.align-center.created_at= pretty_time(adjustment.created_at)
|
|
%td.align-center.label= adjustment.label
|
|
%td.align-center.amount= adjustment.display_amount.to_html
|
|
%td.align-center.included-tax= adjustment.display_included_tax.to_html
|
|
%td.actions
|
|
= link_to_edit adjustment, no_text: true
|
|
= link_to_delete adjustment, no_text: true
|