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>
32 lines
1.3 KiB
ERB
32 lines
1.3 KiB
ERB
<% 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><%= 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><%= t("billing.profile.required_notice") %></strong>
|
|
<%= billing_profile_incomplete_message(@club) %>
|
|
<% if plan_return %>
|
|
<%= raw t("billing.profile.after_save_hint_html", plan: Plan[plan_return].name) %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="card">
|
|
<%= form_with url: public_club_billing_profile_path(@club), method: :patch do %>
|
|
<%= 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 t("billing.profile.submit"), class: "btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<p style="margin-top:20px">
|
|
<%= link_to t("billing.profile.back_to_billing"), public_club_billing_path(@club) %>
|
|
</p>
|
|
</div>
|