Club come entità principale, branding e fix infrastruttura streaming.
Introduce clubs con abbonamento, branding Active Storage e flusso registrazione società; corregge healthcheck MediaMTX (immagine distroless) e allinea dominio produzione matchlivetv.it. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,23 +1,18 @@
|
||||
<% content_for :title, "Crea squadra — Match Live TV" %>
|
||||
<% content_for :meta_description, "Configura la squadra dopo la registrazione su Match Live TV." %>
|
||||
<% content_for :title, "Nuova squadra — #{@club.name}" %>
|
||||
<% content_for :robots, "noindex, nofollow" %>
|
||||
|
||||
<section class="auth-page">
|
||||
<h1>La tua squadra</h1>
|
||||
<p class="auth-lead">Ultimo passo: nome, sport e piano iniziale.</p>
|
||||
<h1>Nuova squadra</h1>
|
||||
<p class="auth-lead">Società: <strong><%= @club.name %></strong></p>
|
||||
<div class="card card-wide">
|
||||
<%= form_with url: public_teams_path do %>
|
||||
<%= form_with url: public_club_teams_path(@club), multipart: true do %>
|
||||
<%= label_tag "team[name]", "Nome squadra" %>
|
||||
<%= text_field_tag "team[name]", nil, required: true %>
|
||||
<%= text_field_tag "team[name]", nil, required: true, placeholder: "es. Under 13, Serie C" %>
|
||||
<%= label_tag "team[sport]", "Sport" %>
|
||||
<%= select_tag "team[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], "volleyball") %>
|
||||
<%= label_tag :plan, "Piano iniziale" %>
|
||||
<%= select_tag :plan, options_for_select([
|
||||
["Free — 1 staff trasmissione + 1 regia, 1 live", "free"],
|
||||
["Premium Light — €40/anno o €5/mese", "premium_light"],
|
||||
["Premium Full — €200/anno o €20/mese", "premium_full"]
|
||||
], "free") %>
|
||||
<%= submit_tag "Crea squadra", class: "btn btn-primary" %>
|
||||
<%= select_tag "team[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], @club.sport) %>
|
||||
<%= render "shared/branding_fields", record: Team.new(club: @club), show_inherit_hint: true, legend: "Override branding (opzionale)" %>
|
||||
<%= submit_tag "Aggiungi squadra", class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<p class="auth-footer"><%= link_to "← Società", public_club_path(@club) %></p>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user