Admin: voce Fatturazione nel menu e elenco società.

Rende raggiungibili pagamenti e fatture PDF senza passare solo dal dettaglio squadra.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-02 17:27:09 +02:00
parent ef805984ee
commit b073ded6c1
5 changed files with 49 additions and 1 deletions

View File

@@ -1,12 +1,20 @@
<h2>Teams</h2>
<table class="admin-table">
<thead><tr><th>Nome</th><th>Sport</th><th>YouTube</th></tr></thead>
<thead><tr><th>Nome</th><th>Società</th><th>Sport</th><th>YouTube</th><th>Fatture</th></tr></thead>
<tbody>
<% @teams.each do |t| %>
<tr>
<td><%= link_to t.name, admin_team_path(t) %></td>
<td><%= t.club&.name || "—" %></td>
<td><%= t.sport %></td>
<td><%= t.youtube_credential.present? ? "✓" : "—" %></td>
<td>
<% if t.club %>
<%= link_to "Pagamenti", admin_club_billing_invoices_path(t.club) %>
<% else %>
<% end %>
</td>
</tr>
<% end %>
</tbody>