Add translations, fix bank links

This commit is contained in:
Martin Lensment 2015-04-10 12:07:59 +03:00
parent 28d8aac65c
commit 416842f924
9 changed files with 44 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
app/assets/images/lhv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
app/assets/images/seb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
app/assets/images/swed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -4,7 +4,7 @@ class Registrar::InvoicesController < RegistrarController
before_action :set_invoice, only: [:show] before_action :set_invoice, only: [:show]
def index def index
@invoices = current_user.registrar.invoices.includes(:invoice_items) @invoices = current_user.registrar.invoices.includes(:invoice_items).order(id: :desc)
end end
def show def show

View file

@ -0,0 +1,16 @@
%h4= t('pay_by_bank_link')
%hr
= link_to '#' do
= image_tag('swed.png')
= link_to '#' do
= image_tag('seb.png')
= link_to '#' do
= image_tag('nordea.png')
= link_to '#' do
= image_tag('lhv.png')
= link_to '#' do
= image_tag('danske.png')

View file

@ -1,9 +1,16 @@
%h1= t('invoice_no', no: @invoice.id) .row
.col-sm-6
%h1.text-center-xs
= t('invoice_no', no: @invoice.id)
.col-sm-6
%h1.text-right.text-center-xs
= link_to(t('back_to_accounting'), registrar_invoices_path, class: 'btn btn-default')
%hr %hr
.row .row
.col-md-6= render 'registrar/invoices/partials/seller' .col-md-6= render 'registrar/invoices/partials/banklinks'
.col-md-6= render 'registrar/invoices/partials/details' .col-md-6= render 'registrar/invoices/partials/details'
.row .row
.col-md-12= render 'registrar/invoices/partials/buyer' .col-md-6= render 'registrar/invoices/partials/seller'
.col-md-6= render 'registrar/invoices/partials/buyer'
.row .row
.col-md-12= render 'registrar/invoices/partials/items' .col-md-12= render 'registrar/invoices/partials/items'

View file

@ -654,3 +654,20 @@ en:
your_current_credit_account_balance_is: 'Your current credit account balance is %{balance} EUR' your_current_credit_account_balance_is: 'Your current credit account balance is %{balance} EUR'
accounting: 'Accounting' accounting: 'Accounting'
your_account: 'Your account' your_account: 'Your account'
pay_by_bank_link: 'Pay by bank link'
back_to_accounting: 'Back to accounting'
issue_date: 'Issue date'
due_date: 'Due date'
payment_term: 'Payment term'
iban: 'Iban'
bank: 'Bank'
swift: 'Swift'
issuer: 'Issuer'
items: 'Items'
buyer: 'Buyer'
unit: 'Unit'
price: 'Price'
total: 'Total'
total_without_vat: 'Total without VAT'
paid_at: 'Paid at'
invoice: 'Invoice'