mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 01:36:02 +02:00
Add translations, fix bank links
This commit is contained in:
parent
28d8aac65c
commit
416842f924
9 changed files with 44 additions and 4 deletions
BIN
app/assets/images/danske.png
Normal file
BIN
app/assets/images/danske.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
app/assets/images/lhv.png
Normal file
BIN
app/assets/images/lhv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
app/assets/images/nordea.png
Normal file
BIN
app/assets/images/nordea.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
app/assets/images/seb.png
Normal file
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
BIN
app/assets/images/swed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -4,7 +4,7 @@ class Registrar::InvoicesController < RegistrarController
|
|||
before_action :set_invoice, only: [:show]
|
||||
|
||||
def index
|
||||
@invoices = current_user.registrar.invoices.includes(:invoice_items)
|
||||
@invoices = current_user.registrar.invoices.includes(:invoice_items).order(id: :desc)
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
16
app/views/registrar/invoices/partials/_banklinks.haml
Normal file
16
app/views/registrar/invoices/partials/_banklinks.haml
Normal 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')
|
|
@ -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
|
||||
.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'
|
||||
.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
|
||||
.col-md-12= render 'registrar/invoices/partials/items'
|
||||
|
|
|
@ -654,3 +654,20 @@ en:
|
|||
your_current_credit_account_balance_is: 'Your current credit account balance is %{balance} EUR'
|
||||
accounting: 'Accounting'
|
||||
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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue