mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
25 lines
1.4 KiB
Plaintext
25 lines
1.4 KiB
Plaintext
.row
|
|
.small-12.columns
|
|
%table
|
|
%tr
|
|
%th.order1= t('.order')
|
|
%th.order2= t('.shop')
|
|
%th.order3.show-for-large-up= t('.changes_allowed_until')
|
|
%th.order4.show-for-large-up= t('.items')
|
|
%th.order5.text-right= t('.total')
|
|
%th.order6.text-right.show-for-large-up= t('.edit')
|
|
%th.order7.text-right= t('.cancel')
|
|
%tbody.transaction-group{"ng-repeat" => "order in Orders.changeable", "ng-class-odd"=>"'odd'", "ng-class-even"=>"'even'"}
|
|
%tr.order-row
|
|
%td.order1
|
|
%a{"ng-href" => "{{::order.path}}", "ng-bind" => "::order.number"}
|
|
%td.order2
|
|
%a{"ng-href" => "{{::Orders.shopsByID[order.shop_id].hash}}#{main_app.shop_path}", "ng-bind" => "::Orders.shopsByID[order.shop_id].name"}
|
|
%td.order3.show-for-large-up{"ng-bind" => "::order.changes_allowed_until"}
|
|
%td.order4.show-for-large-up{"ng-bind" => "::order.item_count"}
|
|
%td.order5.text-right{"ng-class" => "{'credit' : order.total < 0, 'debit' : order.total > 0, 'paid' : order.total == 0}","ng-bind" => "::order.total | localizeCurrency"}
|
|
%td.order6.text-right.show-for-large-up.brick
|
|
%a{"ng-href" => "{{::order.path}}" }= t('.edit')
|
|
%td.order7.text-right
|
|
= link_to t('.cancel'), "", method: :put, "ng-href" => "{{::order.cancel_path}}", "confirm-link-click" => t('orders_confirm_cancel')
|