Name: <%= @school.name %> <% if can? :manage, @school %><%= link_to " Edit", edit_school_path(@school),:class=>"fas fa-edit" %><% end %>

Team Points Deducted: <%= @school.total_points_deducted %>

Score: <%= @school.score %>

Tournament: <%= @school.tournament.name %>

<%= link_to "#{@school.name} Stat Summary", "/schools/#{@school.id}/stats",:class=>"btn btn-sm btn-primary" %>

Roster

<% if can? :manage, @school %><% end %> <% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %> <% if can? :manage, wrestler.school %> <% end %> <% end %>
Name Weight Seed Team Points Scored Extra? Next Bout/Mat<%= link_to " New Wrestler" , "/wrestlers/new?school=#{@school.id}", :class=>"fas fa-plus"%>
<%= link_to "#{wrestler.name}", wrestler %> <%= wrestler.weight.max %> <%= wrestler.original_seed %> <%= wrestler.total_team_points - wrestler.total_points_deducted %> <% if wrestler.extra? == true %> Yes <% end %> <%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %> <%= link_to '', edit_wrestler_path(wrestler),:class=>"fas fa-edit" %> <%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}? This will delete all of his matches." }, :class=>"fas fa-trash-alt" %>
<% if can? :manage, @school %> <%= render 'baums_roster_import' %> <% end %>