1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-02 21:24:25 +00:00

Printable pages

This commit is contained in:
2015-12-08 14:43:51 +00:00
parent e7b0ce9ff3
commit b7e6f015d0
3 changed files with 93 additions and 6 deletions

View File

@@ -3,6 +3,8 @@
<% if params[:print] %>
<head>
<title>WrestlingDev</title>
<%= render 'layouts/cdn' %>
<%= render 'layouts/shim' %>
</head>
<body>
<%= yield %>

View File

@@ -1,6 +1,18 @@
<style>
.pagebreak { page-break-after: always; width:100%;}
#html, #body, #wrapper { width:100%; }
.pagebreak {
page-break-after: always;
border: none;
margin: 0px;
padding: 0px;
width: 7in; /* width: 7in; */
height: 9.5in; /* or height: 9.5in; */
font-size: 10px;
position: relative;
left: 1in;
height: 1in;
}
</style>
@@ -9,7 +21,8 @@
<br>
<div id="exportable">
<% @tournament.weights.sort_by{|w| w.max}.each do |w| %>
<div class="pagebreak">
<table class='pagebreak'>
<td>
<% @weight = w %>
<% @matches = @tournament.matches.select{|m| m.weight_id == @weight.id} %>
<% @wrestlers = Wrestler.where(weight_id: @weight.id) %>
@@ -17,8 +30,10 @@
<h5><%= @weight.max %> lbs Bracket</h5>
<%= render 'pool' %>
</div>
<div class="pagebreak">
</td>
</table>
<table class='pagebreak'>
<td>
<% if w.pool_bracket_type == "twoPoolsToFinal" %>
<%= render 'twoPoolFinalBracket' %>
<% end %>
@@ -31,6 +46,7 @@
<% if w.pool_bracket_type == "fourPoolsToSemi" %>
<%= render 'fourPoolSemiBracket' %>
<% end %>
</div>
</td>
</table>
<% end %>
</div>

69
assignment.pdf Normal file
View File

@@ -0,0 +1,69 @@
%PDF-1.3
%ÿÿÿÿ
1 0 obj
<< /Creator <feff0050007200610077006e>
/Producer <feff0050007200610077006e>
>>
endobj
2 0 obj
<< /Type /Catalog
/Pages 3 0 R
>>
endobj
3 0 obj
<< /Type /Pages
/Count 1
/Kids [5 0 R]
>>
endobj
4 0 obj
<< /Length 83
>>
stream
q
BT
36.0 747.384 Td
/F1.0 12 Tf
[<48656c6c6f2057> 30 <6f72> -15 <6c64>] TJ
ET
Q
endstream
endobj
5 0 obj
<< /Type /Page
/Parent 3 0 R
/MediaBox [0 0 612.0 792.0]
/Contents 4 0 R
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/Font << /F1.0 6 0 R
>>
>>
>>
endobj
6 0 obj
<< /Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
>>
endobj
xref
0 7
0000000000 65535 f
0000000015 00000 n
0000000109 00000 n
0000000158 00000 n
0000000215 00000 n
0000000348 00000 n
0000000526 00000 n
trailer
<< /Size 7
/Root 2 0 R
/Info 1 0 R
>>
startxref
623
%%EOF