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:
2026-07-24 00:38:50 +02:00
co-authored by Cursor
parent fb7068f86c
commit b88f44ab1c
158 changed files with 9444 additions and 1536 deletions
@@ -1,17 +1,17 @@
<% content_for :title, "Dati di fatturazione — #{@club.name}" %>
<% content_for :title, t("billing.profile.title", name: @club.name) %>
<% content_for :robots, "noindex, nofollow" %>
<div class="wrap" style="padding-top:20px;max-width:640px">
<h1>Dati di fatturazione</h1>
<p style="color:#aaa">Società: <strong><%= @club.name %></strong>. Inserisci i dati per lintestazione delle fatture e linvio tramite SDI o PEC.</p>
<h1><%= t("billing.profile.heading") %></h1>
<p style="color:#aaa"><%= t("billing.profile.lead", name: @club.name) %></p>
<% plan_return = params[:plan].presence_in(%w[premium_light premium_full]) %>
<% unless @club.billing_profile_complete? %>
<div class="flash alert" style="margin:16px 0">
<strong>Obbligatori per abbonarti a un piano premium.</strong>
<strong><%= t("billing.profile.required_notice") %></strong>
<%= billing_profile_incomplete_message(@club) %>
<% if plan_return %>
Dopo il salvataggio potrai procedere al pagamento di <strong><%= Plan[plan_return].name %></strong>.
<%= raw t("billing.profile.after_save_hint_html", plan: Plan[plan_return].name) %>
<% end %>
</div>
<% end %>
@@ -21,11 +21,11 @@
<%= hidden_field_tag :plan, plan_return if plan_return %>
<%= hidden_field_tag :interval, params[:interval] if params[:interval].present? %>
<%= render "shared/billing_profile_fields", record: @club %>
<%= submit_tag "Salva dati di fatturazione", class: "btn btn-primary" %>
<%= submit_tag t("billing.profile.submit"), class: "btn btn-primary" %>
<% end %>
</div>
<p style="margin-top:20px">
<%= link_to "← Abbonamento", public_club_billing_path(@club) %>
<%= link_to t("billing.profile.back_to_billing"), public_club_billing_path(@club) %>
</p>
</div>