mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 14:36:59 +00:00
Made onePool and twoPool views. Also implemented round robin gem.
This commit is contained in:
25
app/views/static_pages/_onePool.html.erb
Normal file
25
app/views/static_pages/_onePool.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<h5>Pool 1</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
<th>R4</th>
|
||||
<th>R5</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @poolOneWrestlers.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br>Result</td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(4) %></td>
|
||||
<td><%= w.boutByRound(5) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
43
app/views/static_pages/_twoPool.html.erb
Normal file
43
app/views/static_pages/_twoPool.html.erb
Normal file
@@ -0,0 +1,43 @@
|
||||
<h5>Pool 1</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @poolOneWrestlers.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br>Result</td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h5>Pool 2</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @poolTwoWrestlers.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br>Result</td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user