%= render "common/error_messages", :target => @tournament %>
<% else %>
<%= form_for(@tournament, url: tournaments_path, method: "post") do |f| %>
<%= f.label :name %>
<%= f.text_field :name %>
|
Minimum |
Maximum |
Players per team: |
<%= f.text_field(:min_players_per_team, type: :number, min: 1) %> |
<%= f.text_field(:max_players_per_team, type: :number, min: 1) %> |
Teams per match: |
<%= f.text_field(:min_teams_per_match, type: :number, min: 1) %> |
<%= f.text_field(:max_teams_per_match, type: :number, min: 1) %> |
<%= f.label :scoring_method %>
<%= f.select(:scoring_method, @tournament.scoring_methods.map{|method| [method.humanize, method]}) %>
<%= f.label :sampling_method %>
<%= f.select(:sampling_method, @tournament.sampling_methods.map{|method| [method.humanize, method]}) %>
<%= f.fields_for :stages do |stages_fields| %>
<% end %>
<%= f.submit %>
<% end %>
<% end %>