%= form_with(model: team) do |form| %>
  <% if team.errors.any? %>
    
      <%= pluralize(team.errors.count, "error") %> prohibited this team from being saved:
      
        <% team.errors.each do |error| %>
          - <%= error.full_message %><% end %>
 
  <% end %>
  
    <%= form.label :name, style: "display: block" %>
    <%= form.text_field :name %>
  
  
    <%= form.label :short_name, style: "display: block" %>
    <%= form.text_field :short_name %>
  
  
    <%= form.label :season_id, style: "display: block" %>
    <%= form.select(:season_id, options_for_select(Season.hash_for_select, @team.season_id)) %>
  
  
    <%= form.label :category, style: "display: block" %>
    <%= form.text_field :category %>
  
  
    <%= form.label :captainID, style: "display: block" %>
    <%= form.select(:captainID, options_for_select(@team.players_for_select, @team.captainID)) %>
  
  
    <%= form.submit %>
  
<% end %>