<%= notice %>

<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> <% if tournament_permissions(@tournament) %> | <%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight), :class=>"btn btn-primary" %> <% end %>

Weight Class:<%= @weight.max %>



<% if tournament_permissions(@tournament) %><% end %> <%= form_tag @wrestlers_update_path do %> <% @wrestlers.order("original_seed asc").each do |wrestler| %> <% if wrestler.weight_id == @weight.id %> <% if tournament_permissions(@tournament) %> <% end %> <% end %> <% end %>
Name School Seed Record Seed Criteria Extra?Actions for wrestler
<%= wrestler.name %> <%= School.find(wrestler.school_id).name %> <% if tournament_permissions(@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 %><%= link_to 'Show', wrestler , :class=>"btn btn-default" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger" %>
<% if tournament_permissions(@tournament) %> <%= submit_tag "Save", :class=>"btn btn-success"%> <% end %> <% end %>