%= 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 %>
<% if @show_next_bout_button && @next_match %>
<%= link_to "Skip to Next Match for Mat #{@mat.name}", mat_path(@mat, bout_number: @next_match.bout_number), class: "btn btn-primary" %>
<% end %>
<%= f.label "Overtime Type" %> Leave blank if not overtime. For High School the 1st overtime is SV-1, second overtime is TB-1, third overtime is UTB.
<%= f.select(:overtime_type, Match::OVERTIME_TYPES) %>
<%= 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 %>
<% else %>
<%= f.label "Final Score" %>
The input will adjust based on the selected win type.
Tip: Pin time is an accumulation over the match, not how much time was left in the current period.
For example, if all 3 periods are 2 minutes and a pin happened with 1:27 left in the second period,
the pin time would be 2:33 (2 minutes for the first period + 33 seconds elapsed in the second period).