%= 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 %>
Bout <%= @match.bout_number %>
Bracket Position: <%= @match.bracket_position %>
Name: <%= @wrestler1_name %>
Green
Red
School: <%= @wrestler1_school_name %>
Last Match: <%= @wrestler1_last_match ? time_ago_in_words(@wrestler1_last_match.updated_at) : "N/A" %>
Name: <%= @wrestler2_name %>
Red
Green
School: <%= @wrestler2_school_name %>
Last Match: <%= @wrestler2_last_match ? time_ago_in_words(@wrestler2_last_match.updated_at) : "N/A" %>
<%= @wrestler1_name %> Stats: <%= f.text_area :w1_stat, cols: "30", rows: "10" %>
<%= @wrestler2_name %> Stats: <%= f.text_area :w2_stat, cols: "30", rows: "10" %>
<%= @wrestler1_name %> Scoring T2
E1
R2
N2
N3
N4
P1
P2
<%= @wrestler2_name %> Scoring T2
E1
R2
N2
N3
N4
P1
P2
<%= @wrestler1_name %> Choice Chose Top
Chose Bottom
Chose Nuetral
Deferred
<%= @wrestler2_name %> Choice Chose Top
Chose Bottom
Chose Nuetral
Deferred
<%= @wrestler1_name %> Warnings Stalling
Caution
<%= @wrestler2_name %> Warnings Stalling
Caution
Match Options End Period
Match Results
<%= f.label "Win Type" %>
<%= f.select(:win_type, Match::WIN_TYPES) %>
<%= f.label "Winner" %> Please choose the winner
<%= f.collection_select :winner_id, @wrestlers, :id, :name, include_blank: true %>
<%= f.label "Final Score" %> For decision, major, or tech fall put the score here in Number-Number format. If pin, put the accumulated pin time in the format MM:SS. If default, injury default, dq, bye, or forfeit, leave blank. Examples: 7-2, 17-2, 0:30, or 2:34
<%= f.text_field :score %>
<%= f.hidden_field :finished, :value => 1 %>
<%= f.hidden_field :round, :value => @match.round %>
<%= f.submit onclick: "return confirm('Is the name of the winner ' + document.getElementById('match_winner_id').options[document.getElementById('match_winner_id').selectedIndex].text + '?')", :class=>"btn btn-success" %>
<% end %>