mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Merge pull request #2064 from internetee/2062-fix-invalid-column-title
Fix i18n for the invoice title
This commit is contained in:
commit
20c2bcb597
4 changed files with 9 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
||||||
%table.table.table-hover.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-3'}= t(:invoice)
|
%th{class: 'col-xs-3'}= t('invoice.title')
|
||||||
%th{class: 'col-xs-3'}= Invoice.human_attribute_name :receipt_date
|
%th{class: 'col-xs-3'}= Invoice.human_attribute_name :receipt_date
|
||||||
%th{class: 'col-xs-3'}= t(:due_date)
|
%th{class: 'col-xs-3'}= t(:due_date)
|
||||||
%th{class: 'col-xs-3'}= t(:total)
|
%th{class: 'col-xs-3'}= t(:total)
|
||||||
|
|
|
@ -471,6 +471,7 @@ en:
|
||||||
total: 'Total'
|
total: 'Total'
|
||||||
paid_at: 'Paid at'
|
paid_at: 'Paid at'
|
||||||
invoice:
|
invoice:
|
||||||
|
title: 'Invoice'
|
||||||
already_paid: " (already paid)"
|
already_paid: " (already paid)"
|
||||||
bank_statements: 'Bank statements'
|
bank_statements: 'Bank statements'
|
||||||
back_to_bank_statements: 'Back to bank statements'
|
back_to_bank_statements: 'Back to bank statements'
|
||||||
|
|
|
@ -7,4 +7,5 @@ et:
|
||||||
month_names: [~, Jaanuar, Veebruar, Märts, Aprill, Mai, Juuni, Juuli, August, September, Oktoober, November, Detsember]
|
month_names: [~, Jaanuar, Veebruar, Märts, Aprill, Mai, Juuni, Juuli, August, September, Oktoober, November, Detsember]
|
||||||
emails: "Meillaadressid"
|
emails: "Meillaadressid"
|
||||||
invoice:
|
invoice:
|
||||||
|
title: 'Arve'
|
||||||
already_paid: " (juba makstud)"
|
already_paid: " (juba makstud)"
|
||||||
|
|
|
@ -13,6 +13,11 @@ class ListInvoicesTest < ApplicationSystemTestCase
|
||||||
assert_text "Your current account balance is 100,00 EUR"
|
assert_text "Your current account balance is 100,00 EUR"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_shows_invoice_title
|
||||||
|
visit registrar_invoices_path
|
||||||
|
assert_text 'Invoice', minimum: 2
|
||||||
|
end
|
||||||
|
|
||||||
def test_shows_invoice_owned_by_current_user
|
def test_shows_invoice_owned_by_current_user
|
||||||
owning_registrar = registrars(:bestnames)
|
owning_registrar = registrars(:bestnames)
|
||||||
assert_equal owning_registrar, @user.registrar
|
assert_equal owning_registrar, @user.registrar
|
||||||
|
@ -32,4 +37,4 @@ class ListInvoicesTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
assert_no_text @invoice.to_s
|
assert_no_text @invoice.to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue