foodsoft/app/views/finance/financial_links/_index_invoice.html.haml
2018-10-12 13:18:23 +02:00

20 lines
696 B
Text

.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'}