Aggiunge fatturazione club, pagina regia condivisibile senza account, roster squadre e rimuove la modalità controller dall'app (v1.1.0). Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
739 B
Plaintext
24 lines
739 B
Plaintext
<h1>Fatture — <%= @club.name %></h1>
|
|
<p><%= link_to "← Dashboard", admin_root_path %> · <%= link_to "Nuova fattura", new_admin_club_billing_invoice_path(@club), class: "btn btn-primary" %></p>
|
|
|
|
<% if @invoices.any? %>
|
|
<table class="data">
|
|
<thead>
|
|
<tr><th>Numero</th><th>Data</th><th>Importo</th><th>Stato</th><th>PDF</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @invoices.each do |inv| %>
|
|
<tr>
|
|
<td><%= inv.number %></td>
|
|
<td><%= inv.issued_on %></td>
|
|
<td><%= inv.formatted_amount %></td>
|
|
<td><%= inv.status %></td>
|
|
<td><%= inv.pdf.attached? ? "Sì" : "No" %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% else %>
|
|
<p>Nessuna fattura.</p>
|
|
<% end %>
|