Name: <%= @school.name %> <% if can? :manage, @school %> <% edit_school_path_with_key = edit_school_path(@school) %> <% edit_school_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <%= link_to " Edit", edit_school_path_with_key, class: "fas fa-edit" %> <% end %>
Team Points Deducted: <%= @school.total_points_deducted %>
Score: <%= @school.score %>
Tournament: <%= @school.tournament.name %>
<% stat_summary_path_with_key = "/schools/#{@school.id}/stats" %> <% stat_summary_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <%= link_to "#{@school.name} Stat Summary", stat_summary_path_with_key, class: "btn btn-sm btn-primary" %>(Click wrestler to see their score breakdown and match list)
| Name | Weight | Record/Seed Criteria | Seed | Team Points Scored | Extra? | Next Bout/Mat | <% new_wrestler_path_with_key = new_wrestler_path(school: @school.id) %> <% new_wrestler_path_with_key += "&school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <% if can? :manage, @school %><%= link_to " New Wrestler", new_wrestler_path_with_key, class: "fas fa-plus" %> | <% end %>
|---|---|---|---|---|---|---|---|
| <% wrestler_path_with_key = wrestler_path(wrestler) %> <% wrestler_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <%= link_to wrestler.name, wrestler_path_with_key %> | <%= wrestler.weight.max %> | <%= wrestler.season_win %>-<%= wrestler.season_loss %> <%= wrestler.criteria %> | <%= wrestler.original_seed %> | <%= wrestler.total_team_points - wrestler.total_points_deducted %> | <%= "Yes" if wrestler.extra? %> | <%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %> | <% if can? :manage, wrestler.school %><% edit_wrestler_path_with_key = edit_wrestler_path(wrestler) %> <% edit_wrestler_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <% delete_wrestler_path_with_key = wrestler_path(wrestler) %> <% delete_wrestler_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <%= link_to '', edit_wrestler_path_with_key, class: "fas fa-edit" %> <%= link_to '', delete_wrestler_path_with_key, 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" %> | <% end %>
| <%= link_to wrestler.name, wrestler_path(wrestler) %> | <%= wrestler.weight.max %> | <%= wrestler.season_win %>-<%= wrestler.season_loss %> <%= wrestler.criteria %> | <%= wrestler.original_seed %> | <%= wrestler.total_team_points - wrestler.total_points_deducted %> | <%= "Yes" if wrestler.extra? %> | <%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %> | <% end %> <% if can? :manage, wrestler.school %><% edit_wrestler_path_with_key = edit_wrestler_path(wrestler) %> <% edit_wrestler_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <% delete_wrestler_path_with_key = wrestler_path(wrestler) %> <% delete_wrestler_path_with_key += "?school_permission_key=#{params[:school_permission_key]}" if params[:school_permission_key].present? %> <%= link_to '', edit_wrestler_path_with_key, class: "fas fa-edit" %> <%= link_to '', delete_wrestler_path_with_key, 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" %> | <% end %>