1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/views/tournaments/matches.html.erb

35 lines
916 B
Plaintext

<h1>All <%= @tournament.name %> matches</h1>
<script>
$(document).ready(function() {
$('#matchesList').dataTable();
pagingType: "bootstrap";
} );
</script>
</br>
<table class="table table-striped table-bordered table-condensed" id="matchesList">
<thead>
<tr>
<th>Bout number</th>
<th>Bracket Position</th>
<th>Matchup</th>
<th>Finished?</th>
<th></th>
</tr>
</thead>
<tbody>
<% @matches.each do |match| %>
<tr>
<td><%= match.bout_number %></td>
<td><%= match.bracket_position %></td>
<td><%= match.w1_bracket_name %> vs <%= match.w2_bracket_name %></td>
<td><%= match.finished %></td>
<td><%= link_to 'Show', match, :class=>"btn btn-default btn-sm" %>
<%= link_to 'Edit', edit_match_path(match), :class=>"btn btn-primary btn-sm" %>
</td>
</tr>
<% end %>
</tbody>
</table>