<%= notice %>
Name: <%= @school.name %>
Score: <%= @school.score %>
Tournament: <%= Tournament.find(@school.tournament_id).name %>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> | <% if user_signed_in? %> <%= link_to "Edit #{@school.name}", edit_school_path(@school) %> | <% end %>| Name | Weight | Seed | Record | Seed Criteria | Extra? | Actions |
|---|---|---|---|---|---|---|
| <%= wrestler.name %> | <%= Weight.find(wrestler.weight_id).max %> | <%= wrestler.original_seed %> | <%= wrestler.season_win %>-<%= wrestler.season_loss %> | <%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>% | <% if wrestler.extra? == true %> Yes <% end %> | <% if user_signed_in? %> <%= link_to 'Show', wrestler , :class=>"btn" %> <%= link_to 'Edit', edit_wrestler_path(wrestler), :class=>"btn" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %> <% end %> |