1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00
Files
wrestlingdev.com/app/views/tournaments/weigh_in_sheet.html.erb

37 lines
973 B
Plaintext

<style>
.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>
<% @schools.each do |school| %>
<table class="table table-striped table-bordered table-condensed pagebreak">
<h5><%= school.name %></h4>
<p><strong>Weigh In Ref:</strong> <%= @tournament.weigh_in_ref %></p>
<thead>
<tr>
<th>Name</th>
<th>Weight Class</th>
<th>Actual Weight</th>
</tr>
</thead>
<tbody>
<% school.wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %>
<tr>
<td><%= wrestler.name %></td>
<td><%= wrestler.weight.max %></td>
<td><%= wrestler.offical_weight %></td>
</tr>
<% end %>
</tbody>
</table>
<% end %>