Allinea i form società/squadra al catalogo sport, espone score_action per basket/timed e corregge bug namespace Sports e Result nel period engine; l'app nativa gestisce overlay e punteggio per board con wizard regole esteso. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
941 B
Plaintext
19 lines
941 B
Plaintext
<% content_for :title, "Nuova squadra — #{@club.name}" %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<section class="auth-page">
|
|
<h1>Nuova squadra</h1>
|
|
<p class="auth-lead">Società: <strong><%= @club.name %></strong></p>
|
|
<div class="card card-wide">
|
|
<%= 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, placeholder: "es. Under 13, Serie C" %>
|
|
<%= label_tag "team[sport]", "Sport" %>
|
|
<%= select_tag "team[sport]", sport_catalog_options(@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>
|