Add edit functionality for financial links

This commit is contained in:
Patrick Gansterer 2018-10-11 22:16:50 +02:00
parent f0a55fb951
commit 707501e3f8
13 changed files with 169 additions and 6 deletions

View file

@ -0,0 +1,20 @@
.modal-header
= close_button :modal
%h3= t('.add_invoice')
.modal-body
%table.table.table-striped
%thead
%tr
%th= heading_helper BankTransaction, :date
%th= heading_helper BankTransaction, :text
%th= heading_helper BankTransaction, :reference
%th= heading_helper BankTransaction, :amount
%tbody
- for t in @bank_transactions
%tr
%td= link_to format_time(t.date), add_bank_transaction_finance_link_path(@financial_link, bank_transaction: t.id), method: :put
%td= t.text
%td= t.reference
%td= number_to_currency t.amount
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}