1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fix page break for all brackets

This commit is contained in:
2020-01-25 08:50:04 -05:00
parent 66f7a7ab3e
commit 5bb4febd79

View File

@@ -1,5 +1,20 @@
<% cache ["#{@tournament.id}_all_brackets", @tournament] do %> <style>
<div id="exportable"> .pagebreak {
page-break-after: always;
border: none;
margin: 0px;
padding: 0px;
width: 8in; /* width: 7in; */
height: 9.5in; /* or height: 9.5in; */
font-size: 8px;
position: relative;
left: 0in;
height: 1in;
}
</style>
<% cache ["#{@tournament.id}_all_brackets", @tournament] do %>
<div id="exportable" >
<%= render :file => 'tournaments/team_scores' %> <%= render :file => 'tournaments/team_scores' %>
<% @tournament.weights.sort_by{|w| w.max}.each do |weight| %> <% @tournament.weights.sort_by{|w| w.max}.each do |weight| %>
<table class='pagebreak'> <table class='pagebreak'>
@@ -24,5 +39,5 @@
</tr> </tr>
</table> </table>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>