Add edit functionality for financial links
This commit is contained in:
parent
f0a55fb951
commit
707501e3f8
13 changed files with 169 additions and 6 deletions
20
app/views/finance/financial_links/_index_invoice.html.haml
Normal file
20
app/views/finance/financial_links/_index_invoice.html.haml
Normal 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 Invoice, :number
|
||||
%th= heading_helper Invoice, :supplier
|
||||
%th= heading_helper Invoice, :date
|
||||
%th= heading_helper Invoice, :amount
|
||||
%tbody
|
||||
- for invoice in @invoices
|
||||
%tr
|
||||
%td= link_to h(invoice.number), add_invoice_finance_link_path(@financial_link, invoice: invoice.id), method: :put
|
||||
%td= invoice.supplier.name
|
||||
%td= format_date invoice.date
|
||||
%td= number_to_currency invoice.amount
|
||||
.modal-footer
|
||||
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue