1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 15:42:09 +00:00

Added dataTables for matches and tournaments.

This commit is contained in:
2015-02-11 10:50:25 -05:00
parent f32b91def7
commit bdec6c0463
11 changed files with 28804 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<% end %>
</br>
</br>
<table class="table table-striped table-bordered">
<table class="display compact cell-border" id="tournaments">
<thead>
<tr>
<th>Name</th>

View File

@@ -2,7 +2,28 @@
<br>
<br>
<h3>Upcoming Matches</h3>
<% @matches.each do |m| %>
Round <%= m.round %> Bout <%= m.boutNumber %> <%= Wrestler.find(m.r_id).weight.max %> Lbs <%= Wrestler.find(m.r_id).name %> vs. <%= Wrestler.find(m.g_id).weight.max %> Lbs <%= Wrestler.find(m.g_id).name %>
<br>
<% end %>
<br>
<br>
<table class="display compact cell-border" id="matches">
<thead>
<tr>
<th>Round</th>
<th>Bout Number</th>
<th>Weight Class</th>
<th>Matchup</th>
</tr>
</thead>
<tbody>
<% @matches.each do |m| %>
<tr>
<td>Round <%= m.round %></td>
<td>Bout <%= m.boutNumber %></td>
<td><%= m.weight_max %> lbs</td>
<td><%= m.w1_name %> vs. <%= m.w2_name %></td>
</tr>
<% end %>
</tbody>
</table>
<br>