Files
MatchLiveTv/backend/app/views/public/clubs/new.html.erb
eminuxandCursor 5bcb4170c7 Mostra il piano attivo dopo il bonifico e allinea il flusso società.
Dopo la conferma admin la card restava su «Paga con bonifico»; la società parte da Free, l'owner è staff trasmissione e le mail non bloccano se manca SMTP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 18:31:39 +02:00

33 lines
1.8 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>
<%= submit_tag t("club.new.submit"), class: "btn btn-primary" %>
<% end %>
</div>
</section>