%= form_for(@match) do |f| %>
<% if @match.errors.any? %>
<%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:
<% @match.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label "Win Type" %>
<%= f.select(:win_type, Match::WIN_TYPES) %>
<%= f.label "Winner" %> Please put in the id of the winner
<%= @w1.name %> ID: <%= @w1.id %>
<%= @w2.name %> ID: <%= @w2.id %>
<%= f.number_field :winner_id %>
<%= f.label "Score" %> Also put pin time here if applicable. If default or forfeit, leave blank
<%= f.text_field :score %>
<%= f.hidden_field :finished, :value => 1 %>
<%= f.hidden_field :round, :value => @match.round %>
<%= f.submit %>
<% end %>