<%= form_for(@match) do |f| %> <% if @match.errors.any? %>

<%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:

<% end %>

Bout <%= @match.bout_number %> <%= @w1.name %> VS. <%= @w2.name %>


<%= f.label "Win Type" %>
<%= f.select(:win_type, Match::WIN_TYPES) %>
<%= f.label "Winner" %> Please put in the id of the winner
<%= f.collection_select :winner_id, @wrestlers, :id, :name %>
<%= 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 data: { confirm: "Did you confirm the winner before submitting? If not, please hit cancel."}, :class=>"btn btn-success" %>
<% end %>