%= form_for(@tournament) do |f| %>
<% if @tournament.errors.any? %>
<%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:
<% @tournament.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :game_id %>
<%= f.text_field :game_id %>
<%= f.label :status %>
<%= f.number_field :status %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :min_players_per_team %>
<%= f.number_field :min_players_per_team %>
<%= f.label :max_players_per_team %>
<%= f.number_field :max_players_per_team %>
<%= f.label :min_teams_per_match %>
<%= f.number_field :min_teams_per_match %>
<%= f.label :max_teams_per_match %>
<%= f.number_field :max_teams_per_match %>
<%= f.label :set_rounds %>
<%= f.number_field :set_rounds %>
<%= f.label :randomized_teams %>
<%= f.check_box :randomized_teams %>
<%= f.label :sampling_method %>
<%= f.text_field :sampling_method %>
<%= f.submit %>
<% end %>