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:
23
backend/app/views/public/teams/edit.html.erb
Normal file
23
backend/app/views/public/teams/edit.html.erb
Normal file
@@ -0,0 +1,23 @@
|
||||
<% 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>
|
||||
Reference in New Issue
Block a user