Files
eminuxandCursor 356aa28fad Aggiunge la garanzia Soddisfatti o rimborsati di 30 giorni su prezzi, homepage e Termini.
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>
2026-08-31 19:27:28 +02:00

36 lines
2.0 KiB
ERB

<% content_for :title, t("club.new.title") %>
<% content_for :meta_description, t("club.new.meta_description") %>
<% content_for :robots, "noindex, nofollow" %>
<section class="auth-page">
<h1><%= t("club.new.heading") %></h1>
<p class="auth-lead"><%= t("club.new.lead") %></p>
<div class="card card-wide">
<%= form_with url: public_clubs_path, multipart: true do %>
<h2 class="form-section-title"><%= t("club.new.section_club") %></h2>
<%= label_tag "club[name]", t("club.new.name_label") %>
<%= text_field_tag "club[name]", params.dig(:club, :name), required: true, placeholder: t("club.new.name_placeholder") %>
<%= label_tag "club[sport]", t("club.sport_label") %>
<%= select_tag "club[sport]", sport_catalog_options(params.dig(:club, :sport) || "pallavolo") %>
<%= render "shared/branding_fields", record: Club.new(primary_color: "#e53935", secondary_color: "#ffffff"), legend: t("club.branding_legend") %>
<%= render "shared/billing_profile_fields", record: Club.new(billing_country: "IT") %>
<h2 class="form-section-title" style="margin-top:24px"><%= t("club.new.section_first_team") %></h2>
<%= label_tag "first_team[name]", t("club.new.first_team_name_label") %>
<%= text_field_tag "first_team[name]", params.dig(:first_team, :name), required: true, placeholder: t("club.new.first_team_name_placeholder") %>
<%= label_tag :plan, t("club.new.plan_label") %>
<%= select_tag :plan, options_for_select([
[t("club.new.plan_free"), "free"],
[t("club.new.plan_light"), "premium_light"],
[t("club.new.plan_full"), "premium_full"]
], params[:plan] || "free") %>
<p class="muted" style="margin:8px 0 16px"><%= t("club.new.plan_hint") %></p>
<% if params[:plan].presence_in(%w[premium_light premium_full]) %>
<%= render "shared/refund_guarantee", variant: "checkout" %>
<% end %>
<%= submit_tag t("club.new.submit"), class: "btn btn-primary" %>
<% end %>
</div>
</section>