36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
<div class="col-md-12 panel-default">
|
|
<div class="content-box-header panel-heading">
|
|
<div class="panel-title">Faktury</div>
|
|
|
|
<div class="panel-options">
|
|
<%= link_to raw('<i class="glyphicon glyphicon-file text-success"></i> Nowa faktura'), new_invoice_path, class: "text-primary" %><br/>
|
|
</div>
|
|
</div>
|
|
<div class="content-box-large box-with-header">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Numer</th>
|
|
<th>Klient</th>
|
|
<th>Kwota netto</th>
|
|
<th>Data wystawienia</th>
|
|
<th>Termin płatności</th>
|
|
<th>Akcje</th>
|
|
</tr>
|
|
|
|
<% @invoices.each do |invoice| %>
|
|
<tr>
|
|
<td><%= link_to invoice.number, invoice_path(invoice) %></td>
|
|
<td><%= invoice.customer.name %></td>
|
|
<td><%= number_with_precision(invoice.netto_amount, precision: 2) %></td>
|
|
<td><%= invoice.date %></td>
|
|
<td><%= invoice.date_of_payment %></td>
|
|
<td>
|
|
<%= link_to raw('<i class="glyphicon glyphicon-pencil"></i> Edycja'), edit_invoice_path(invoice), class: "btn btn-primary btn-xs" %>
|
|
<%= link_to raw('<i class="glyphicon glyphicon-trash"></i> Usuń'), invoice_path(invoice), class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Czy na pewno usunąć?' } %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
</div>
|
|
</div>
|