Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<h1>Fatturazione — <%= @club.name %></h1>
|
||||
<h1><%= t("admin.billing_invoices.index.title", club: @club.name) %></h1>
|
||||
<p>
|
||||
<%= link_to "← Dashboard", admin_root_path %>
|
||||
· <%= link_to "Nuova fattura (senza pagamento)", new_admin_club_billing_invoice_path(@club), class: "btn btn-secondary" %>
|
||||
<%= link_to t("admin.billing_invoices.index.back_dashboard"), admin_root_path %>
|
||||
· <%= link_to t("admin.billing_invoices.index.new_invoice"), new_admin_club_billing_invoice_path(@club), class: "btn btn-secondary" %>
|
||||
</p>
|
||||
|
||||
<h2 style="margin-top:24px;font-size:1.1rem">Pagamenti</h2>
|
||||
<h2 style="margin-top:24px;font-size:1.1rem"><%= t("admin.billing_invoices.index.payments_title") %></h2>
|
||||
<% if @payments.any? %>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Importo</th>
|
||||
<th>Fattura</th>
|
||||
<th><%= t("admin.billing_invoices.index.table.date") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table.description") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table.amount") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table.invoice") %></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -26,16 +26,16 @@
|
||||
<td>
|
||||
<% if inv %>
|
||||
<%= inv.number %> — <%= inv.status %>
|
||||
<% if inv.pdf.attached? %> (PDF)<% end %>
|
||||
<% if inv.pdf.attached? %><%= t("admin.billing_invoices.index.pdf_suffix") %><% end %>
|
||||
<% else %>
|
||||
—
|
||||
<%= t("admin.common.dash") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<% if inv %>
|
||||
<%= link_to "Modifica / invia PDF", edit_admin_club_billing_invoice_path(@club, inv) %>
|
||||
<%= link_to t("admin.billing_invoices.index.edit_send_pdf"), edit_admin_club_billing_invoice_path(@club, inv) %>
|
||||
<% else %>
|
||||
<%= link_to "Crea fattura", new_admin_club_billing_invoice_path(@club, billing_payment_id: payment.id), class: "btn btn-primary", style: "padding:6px 10px;font-size:0.85rem" %>
|
||||
<%= link_to t("admin.billing_invoices.index.create_invoice"), new_admin_club_billing_invoice_path(@club, billing_payment_id: payment.id), class: "btn btn-primary", style: "padding:6px 10px;font-size:0.85rem" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -43,14 +43,21 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p>Nessun pagamento registrato per questa società.</p>
|
||||
<p><%= t("admin.billing_invoices.index.no_payments") %></p>
|
||||
<% end %>
|
||||
|
||||
<h2 style="margin-top:32px;font-size:1.1rem">Tutte le fatture</h2>
|
||||
<h2 style="margin-top:32px;font-size:1.1rem"><%= t("admin.billing_invoices.index.all_invoices_title") %></h2>
|
||||
<% if @invoices.any? %>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr><th>Numero</th><th>Data</th><th>Importo</th><th>Stato</th><th>Pagamento</th><th></th></tr>
|
||||
<tr>
|
||||
<th><%= t("admin.billing_invoices.index.table2.number") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table2.date") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table2.amount") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table2.status") %></th>
|
||||
<th><%= t("admin.billing_invoices.index.table2.payment") %></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @invoices.each do |inv| %>
|
||||
@@ -59,12 +66,12 @@
|
||||
<td><%= inv.issued_on %></td>
|
||||
<td><%= inv.formatted_amount %></td>
|
||||
<td><%= inv.status %></td>
|
||||
<td><%= inv.billing_payment_id.present? ? "Sì" : "No" %></td>
|
||||
<td><%= link_to "Modifica", edit_admin_club_billing_invoice_path(@club, inv) %></td>
|
||||
<td><%= inv.billing_payment_id.present? ? t("admin.common.yes") : t("admin.common.no") %></td>
|
||||
<td><%= link_to t("admin.billing_invoices.index.edit"), edit_admin_club_billing_invoice_path(@club, inv) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p>Nessuna fattura.</p>
|
||||
<p><%= t("admin.billing_invoices.index.no_invoices") %></p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user