Rimuove link al portale Stripe in area cliente, aggiunge flusso admin per PDF fattura e email, blocca checkout senza dati di fatturazione, allinea prezzi a €4,90/€39,90 e €9,90/€69,90, locale italiano e documentazione deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
2.3 KiB
Plaintext
40 lines
2.3 KiB
Plaintext
<% content_for :title, "Registra società — Match Live TV" %>
|
|
<% content_for :meta_description, "Crea la società sportiva e la prima squadra su Match Live TV." %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<section class="auth-page">
|
|
<h1>La tua società</h1>
|
|
<p class="auth-lead">Registra il club: potrai aggiungere più squadre (Under 13, Under 15, Serie C…).</p>
|
|
<div class="card card-wide">
|
|
<%= form_with url: public_clubs_path, multipart: true do %>
|
|
<h2 class="form-section-title">Società</h2>
|
|
<%= label_tag "club[name]", "Nome società / club" %>
|
|
<%= text_field_tag "club[name]", params.dig(:club, :name), required: true, placeholder: "es. Crazy Volley Rozzano" %>
|
|
<%= label_tag "club[sport]", "Sport principale" %>
|
|
<%= select_tag "club[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], params.dig(:club, :sport) || "volleyball") %>
|
|
<%= render "shared/branding_fields", record: Club.new(primary_color: "#e53935", secondary_color: "#ffffff"), legend: "Logo e colori societari" %>
|
|
<%= render "shared/billing_profile_fields", record: Club.new(billing_country: "IT") %>
|
|
|
|
<h2 class="form-section-title" style="margin-top:24px">Prima squadra</h2>
|
|
<%= label_tag "first_team[name]", "Nome squadra" %>
|
|
<%= text_field_tag "first_team[name]", params.dig(:first_team, :name), required: true, placeholder: "es. Under 15" %>
|
|
|
|
<%= label_tag :plan, "Piano iniziale (per tutta la società)" %>
|
|
<%= select_tag :plan, options_for_select([
|
|
["Free — 1 responsabile trasmissione per squadra, 1 live", "free"],
|
|
["Premium Light", "premium_light"],
|
|
["Premium Full", "premium_full"]
|
|
], params[:plan] || "free"), id: "club_plan_select" %>
|
|
<div id="club_plan_interval" style="margin-top:10px">
|
|
<%= label_tag :interval, "Fatturazione premium" %>
|
|
<%= select_tag :interval, options_for_select([
|
|
["Annuale — €40/anno (Light) o €200/anno (Full)", "yearly"],
|
|
["Mensile — €5/mese (Light) o €20/mese (Full)", "monthly"]
|
|
], params[:interval] || "yearly") %>
|
|
</div>
|
|
<%= render "shared/stripe_secure_payment", compact: true %>
|
|
<%= submit_tag "Crea società", class: "btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
</section>
|