2018-10-11 22:16:50 +02:00
|
|
|
.modal-header
|
|
|
|
= close_button :modal
|
2019-10-30 12:42:41 +01:00
|
|
|
%h3= t('.title')
|
2018-10-11 22:16:50 +02:00
|
|
|
.modal-body
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= heading_helper FinancialTransaction, :created_on
|
|
|
|
%th= heading_helper FinancialTransaction, :ordergroup
|
|
|
|
- if FinancialTransactionType.has_multiple_types
|
|
|
|
%th= heading_helper FinancialTransaction, :financial_transaction_type
|
|
|
|
%th= heading_helper FinancialTransaction, :amount
|
|
|
|
%tbody
|
|
|
|
- for t in @financial_transactions
|
|
|
|
%tr
|
|
|
|
%td= link_to format_time(t.created_on), add_financial_transaction_finance_link_path(@financial_link, financial_transaction: t.id), method: :put
|
2019-11-01 14:07:23 +01:00
|
|
|
%td= t.ordergroup_name
|
2018-10-11 22:16:50 +02:00
|
|
|
- if FinancialTransactionType.has_multiple_types
|
|
|
|
%td= h t.financial_transaction_type.name
|
|
|
|
%td= number_to_currency t.amount
|
|
|
|
.modal-footer
|
|
|
|
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|