mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Clarify named vouchers in UI
This commit is contained in:
@@ -91,10 +91,12 @@
|
||||
|
||||
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
|
||||
.summary-right-line
|
||||
-if adjustment.originator_type == 'Voucher'
|
||||
.summary-right-line-label.voucher= adjustment.label
|
||||
- if adjustment.originator_type == 'Voucher'
|
||||
.summary-right-line-label.voucher
|
||||
= "#{t(:voucher)}:"
|
||||
= adjustment.label
|
||||
.summary-right-line-value.voucher= adjustment.display_amount.to_html
|
||||
-else
|
||||
- else
|
||||
.summary-right-line-label= adjustment.label
|
||||
.summary-right-line-value= adjustment.display_amount.to_html
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
%tr.total
|
||||
%td.text-right{:colspan => "3"}
|
||||
%strong
|
||||
- if adjustment.originator_type == "Voucher"
|
||||
= "#{t(:voucher)}:"
|
||||
= adjustment.label
|
||||
%td.text-right.total
|
||||
%span= adjustment.display_amount.to_html
|
||||
|
||||
@@ -450,6 +450,7 @@ en:
|
||||
none: None
|
||||
notes: Notes
|
||||
error: Error
|
||||
voucher: Voucher
|
||||
processing_payment: "Processing payment..."
|
||||
no_pending_payments: "No pending payments"
|
||||
invalid_payment_state: "Invalid payment state: %{state}"
|
||||
|
||||
Reference in New Issue
Block a user