New team
<%= 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 :categoryID, style: "display: block" %>
<%= form.text_field :categoryID %>
<%= form.label :teamID, style: "display: block" %>
<%= form.text_field :teamID %>
<%= form.label :season_id, style: "display: block" %>
<%= form.select(:season_id, options_for_select(Season.hash_for_select, @team.season_id)) %>
<%= form.submit %>
<% end %>
<%= link_to "Back to teams", teams_path %>