Riduce il rischio percepito all'acquisto (Light e Full) e chiama l'archivio replay in modo orientato all'utente, senza cambiare prezzi o logica dei piani. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1.4 KiB
ERB
35 lines
1.4 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 %>
|
|
<% if plan_return %>
|
|
<%= render "shared/refund_guarantee", variant: "checkout" %>
|
|
<% end %>
|
|
<%= 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>
|