From dd0585ed553e29bc62c2f68415f0eafea8671267 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 27 Jan 2025 09:10:02 -0500 Subject: [PATCH] Fixed bout sheets to fit on a single page. --- app/views/tournaments/bout_sheets.html.erb | 212 +++++++++++---------- 1 file changed, 112 insertions(+), 100 deletions(-) diff --git a/app/views/tournaments/bout_sheets.html.erb b/app/views/tournaments/bout_sheets.html.erb index 4560238..b8f8430 100644 --- a/app/views/tournaments/bout_sheets.html.erb +++ b/app/views/tournaments/bout_sheets.html.erb @@ -1,112 +1,124 @@ + <% @matches.each do |match| %> <% if match.w1 && match.w2 %> <% w1 = Wrestler.find(match.w1) %> <% w2 = Wrestler.find(match.w2) %> <% end %> - -

Bout Number: <%= match.bout_number %>

-

Weight Class: <%= match.weight.max %>

-

Round: <%= match.round %>

-

Bracket Position: <%= match.bracket_position %>

-

Key: Takedown: T2, Escape: E1, Reversal: R2, Nearfall: N2 or N3, Stalling: S, Caution: C, Penalty Point: P1

- - - - - - - - - - +
+

Bout Number: <%= match.bout_number %> Weight Class: <%= match.weight.max %> Round: <%= match.round %> Bracket Position: <%= match.bracket_position %>

+

Key: Takedown: T3, Escape: E1, Reversal: R2, Nearfall: N2 or N3 or N4, Stalling: S, Caution: C, Penalty Point: P1

+ +
Circle Winner -

<%= match.w1_name %>

-

<%= if w1 then w1.school.name end %>

-
-

<%= match.w2_name %>

-

<%= if w2 then w2.school.name end %>

-
+ + + + + + + + + + - - - - + <% ['Period 1'].each do |period| %> + + + + + + <% end %> + <% ['Period 2', 'Period 3'].each do |period| %> + + + + + + + + + + + <% end %> + <% ['Overtime 1', 'Overtime 2', 'Overtime 3'].each do |period| %> + + + + + + + + + + + <% end %> + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Circle Winner +

<%= match.w1_name %>-<%= w1&.school&.name %>

+
+

<%= match.w2_name %>-<%= w2&.school&.name %>

+
red / green (circle one) red / green (circle one)
Period 1

















<%= period %>
Choice (if applicable)top / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
<%= period %>
Choice (if applicable)top / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
<%= period %>
Final Score (or pin time, default, disqualified, etc)
Choicetop / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
Period 2

















Choicetop / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
Period 3

















Overtime 1

Choicetop / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
Overtime 2



Choicetop / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
Overtime 3



Choicetop / bottom / neutral / defer (circle one)top / bottom / neutral / defer (circle one)
Overtime 4



Final Score (or pin time, default, disqualified, etc)



-<% end %> \ No newline at end of file + + + +<% end %>