mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-01 11:31:56 +00:00
Adding wrestlers team points to show school page and wrestler show button
This commit is contained in:
@@ -39,10 +39,9 @@
|
|||||||
<th>Seed</th>
|
<th>Seed</th>
|
||||||
<th>Record</th>
|
<th>Record</th>
|
||||||
<th>Seed Criteria</th>
|
<th>Seed Criteria</th>
|
||||||
|
<th>Team Points Scored</th>
|
||||||
<th>Extra?</th>
|
<th>Extra?</th>
|
||||||
<% if tournament_permissions(@school.tournament) %>
|
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<% end %>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@@ -57,16 +56,17 @@
|
|||||||
</td>
|
</td>
|
||||||
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
|
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
|
||||||
<td><%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>%</td>
|
<td><%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>%</td>
|
||||||
|
<td><%= wrestler.totalTeamPoints - wrestler.totalDeductedPoints %></td>
|
||||||
<td><% if wrestler.extra? == true %>
|
<td><% if wrestler.extra? == true %>
|
||||||
Yes
|
Yes
|
||||||
<% end %></td>
|
<% end %></td>
|
||||||
|
<td>
|
||||||
|
<%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
|
||||||
<% if tournament_permissions(@school.tournament) %>
|
<% if tournament_permissions(@school.tournament) %>
|
||||||
<td>
|
|
||||||
<%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
|
|
||||||
<%= link_to 'Edit', edit_wrestler_path(wrestler),:class=>"btn btn-primary" %>
|
<%= link_to 'Edit', edit_wrestler_path(wrestler),:class=>"btn btn-primary" %>
|
||||||
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
|
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
|
||||||
</td>
|
<% end %>
|
||||||
<% end %>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user