mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Replace view with status column in past orders table
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
%th.order4.show-for-large-up= t('.items')
|
||||
%th.order5.text-right= t('.total')
|
||||
%th.order6.text-right.show-for-large-up= t('.paid?')
|
||||
%th.order7.text-right= t('.view')
|
||||
%th.order7.text-right= t('.status')
|
||||
%tbody.transaction-group{"ng-repeat" => "order in Orders.all | filter:{changes_allowed:false} as pastOrders", "ng-class-odd"=>"'odd'", "ng-class-even"=>"'even'"}
|
||||
%tr.order-row
|
||||
%td.order1{"ng-bind" => "::order.number"}
|
||||
@@ -18,5 +18,6 @@
|
||||
%td.order4.show-for-large-up{"ng-bind" => "::order.item_count"}
|
||||
%td.order5.text-right{"ng-class" => "{'debit': order.payment_state != 'paid', 'credit': order.payment_state == 'paid'}","ng-bind" => "::order.total | localizeCurrency"}
|
||||
%td.order6.text-right.show-for-large-up{"ng-class" => "{'debit': order.payment_state != 'paid', 'credit': order.payment_state == 'paid'}", "ng-bind" => "::(order.payment_state == 'paid' ? 'say_yes' : 'say_no') | t"}
|
||||
%td.order7.text-right
|
||||
%a{"ng-href" => "{{::order.path}}" }= t('.view')
|
||||
%td.order7.text-right{ "ng-switch" => "::order.state" }
|
||||
%a{ "ng-switch-when" => "complete", "ng-href" => "{{::order.path}}" }= t('.completed')
|
||||
%span{ "ng-switch-when" => "canceled" }= t('.cancelled')
|
||||
|
||||
@@ -4208,7 +4208,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
items: Items
|
||||
total: Total
|
||||
paid?: Paid?
|
||||
view: View
|
||||
status: Status
|
||||
completed: Completed
|
||||
cancelled: Cancelled
|
||||
saved_cards:
|
||||
default?: Default?
|
||||
delete?: Delete?
|
||||
|
||||
Reference in New Issue
Block a user