<% content_for :title, "Modifica società — #{@club.name}" %>
<% content_for :robots, "noindex, nofollow" %>

<div class="wrap" style="padding-top:20px;max-width:560px">
  <h1>Modifica società</h1>
  <div class="card">
    <%= form_with url: public_club_path(@club), method: :patch, multipart: true do %>
      <%= label_tag "club[name]", "Nome società" %>
      <%= text_field_tag "club[name]", @club.name, required: true %>
      <%= label_tag "club[sport]", "Sport principale" %>
      <%= select_tag "club[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], @club.sport) %>
      <%= render "shared/branding_fields", record: @club, legend: "Logo e colori societari" %>
      <%= render "shared/billing_profile_fields", record: @club %>
      <%= submit_tag "Salva", class: "btn btn-primary" %>
    <% end %>
  </div>
  <p><%= link_to "← Società", public_club_path(@club) %></p>
</div>
