<%= 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 %>| Name | School | Seed | Record | Seed Criteria | Extra? | <% if tournament_permissions(@tournament) %>Actions for wrestler | <% end %>
|---|---|---|---|---|---|---|
| <%= 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 %> | <% if tournament_permissions(@tournament) %><%= link_to 'Show', wrestler , :class=>"btn btn-default" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger" %> | <% end %>