%= form_with(model: game) do |form| %>
<% if game.errors.any? %>
<%= pluralize(game.errors.count, "error") %> prohibited this game from being saved:
<% game.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :season_id, style: "display: block" %>
<%= form.text_field :season_id %>
<%= form.label :team_id, style: "display: block" %>
<%= form.text_field :team_id %>
<%= form.label :matchday, style: "display: block" %>
<%= form.text_field :matchday %>
<%= form.label :date, style: "display: block" %>
<%= form.date_field :date %>
<%= form.label :homesite, style: "display: block" %>
<%= form.check_box :homesite %>
<%= form.label :state, style: "display: block" %>
<%= form.select(:state, options_for_select([["Cerrado","close"],["Disponibles","availability"],["Convocados","open"]], @game.state)) %>
<%= form.submit %>
<% end %>