1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-15 01:43:35 +00:00

Create bout sheets and make all printable pages go to a new window

This commit is contained in:
2019-01-08 16:03:33 +00:00
parent 2a506e072d
commit 07b51103bf
7 changed files with 134 additions and 4 deletions

View File

@@ -20,7 +20,13 @@
<br><strong>Pages</strong><br>
<br><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %>
<br><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
<br><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" %>
<br><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %>
<br>Bout Sheets: <ul>
<% 1.upto(@tournament.total_rounds) do |round| %>
<li><%= link_to "Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
<% end %>
<li><%= link_to "All Rounds" , "/tournaments/#{@tournament.id}/bout_sheets?round=All&print=true" , target: :_blank %></li>
</ul>
<br><%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %>
<% if can? :destroy, @tournament %>
<br><%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %>