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>
24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
<% content_for :title, "Modifica squadra — #{@team.name}" %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<div class="wrap" style="padding-top:20px;max-width:560px">
|
|
<h1><%= @team.name %></h1>
|
|
<p style="color:#888">Società: <%= link_to @club.name, public_club_path(@club) %></p>
|
|
<div class="card">
|
|
<%= form_with url: public_team_path(@team), method: :patch, multipart: true do %>
|
|
<%= label_tag "team[name]", "Nome squadra" %>
|
|
<%= text_field_tag "team[name]", @team.name, required: true %>
|
|
<%= label_tag "team[sport]", "Sport" %>
|
|
<%= select_tag "team[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], @team.sport) %>
|
|
<%= render "shared/branding_fields", record: @team, show_inherit_hint: true, legend: "Branding squadra (override)" %>
|
|
<p class="branding-hint">
|
|
Colori società:
|
|
<span class="color-swatch" style="background:<%= @club.effective_primary_color %>"></span>
|
|
<span class="color-swatch" style="background:<%= @club.effective_secondary_color %>"></span>
|
|
</p>
|
|
<%= submit_tag "Salva squadra", class: "btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
<p><%= link_to "← Dashboard squadra", public_team_dashboard_path(@team) %></p>
|
|
</div>
|