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,17 +1,16 @@
|
||||
<h2>Società e squadre</h2>
|
||||
<h2><%= t("admin.clubs.index.title") %></h2>
|
||||
<p style="color:#888;margin-bottom:16px">
|
||||
Abbonamenti omaggio (sponsor / promozioni) e stato YouTube per squadra.
|
||||
Pagamenti Stripe: <%= link_to "Fatturazione", admin_billing_path %>.
|
||||
<%= t("admin.clubs.index.subtitle_html", billing_link: link_to(t("admin.clubs.index.billing_link"), admin_billing_path)) %>
|
||||
</p>
|
||||
|
||||
<table class="admin-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Società</th>
|
||||
<th>Piano</th>
|
||||
<th>Squadre</th>
|
||||
<th>Omaggio</th>
|
||||
<th>Stripe</th>
|
||||
<th><%= t("admin.clubs.index.table.club") %></th>
|
||||
<th><%= t("admin.clubs.index.table.plan") %></th>
|
||||
<th><%= t("admin.clubs.index.table.teams") %></th>
|
||||
<th><%= t("admin.clubs.index.table.comped") %></th>
|
||||
<th><%= t("admin.clubs.index.table.stripe") %></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -20,20 +19,20 @@
|
||||
<% sub = club.subscription %>
|
||||
<tr>
|
||||
<td><strong><%= club.name %></strong></td>
|
||||
<td><%= sub&.plan&.name || "Free" %></td>
|
||||
<td><%= sub&.plan&.name || t("admin.common.free_plan") %></td>
|
||||
<td><%= club.teams.size %></td>
|
||||
<td>
|
||||
<% if sub&.admin_comped? %>
|
||||
<span style="color:#ffb74d">Sì</span>
|
||||
<span style="color:#ffb74d"><%= t("admin.common.yes") %></span>
|
||||
<% if sub.admin_comped_reason.present? %> · <%= sub.admin_comped_reason %><% end %>
|
||||
<% else %>
|
||||
—
|
||||
<%= t("admin.common.dash") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= sub&.stripe_subscription_id.present? ? "Sì" : "—" %></td>
|
||||
<td><%= sub&.stripe_subscription_id.present? ? t("admin.common.yes") : t("admin.common.dash") %></td>
|
||||
<td>
|
||||
<%= link_to "Gestisci", admin_club_path(club) %>
|
||||
· <%= link_to "Fatture", admin_billing_path(club_id: club.id) %>
|
||||
<%= link_to t("admin.clubs.index.manage"), admin_club_path(club) %>
|
||||
· <%= link_to t("admin.clubs.index.invoices"), admin_billing_path(club_id: club.id) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user