%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<% if can? :manage, @tournament %>
| <%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight), :class=>"btn btn-primary" %>
| <%= form_for(@weight, url: regen_weight_path(@weight.id), :method => "post") do |f| %>
<%= submit_tag "Regenerate Weight Class Matches", :class=>"btn"%>
<% end %>
<% end %>
| Name | School | Seed | Record | Seed Criteria | Extra? | <% if can? :manage, @tournament %>Actions for wrestler | <% end %>
|---|---|---|---|---|---|---|
| <%= wrestler.name %> | <%= wrestler.school.name %> | <% if can? :manage, @tournament %> <%= fields_for "wrestler[]", wrestler do |w| %> <%= w.text_field :original_seed %> <% end %> <% else %> <%= wrestler.original_seed %> <% end %> | <%= wrestler.season_win %>-<%= wrestler.season_loss %> | <%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>% | <% if wrestler.extra? == true %> Yes <% end %> | <% if can? :manage, @tournament %><%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger btn-sm" %> | <% end %>
*All wrestlers without a seed (determined by tournament director) will be assigned a random seed.
<% if can? :manage, @tournament %>