1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 22:03:49 +00:00

Added persistence to pool placement and pool order

This commit is contained in:
2019-04-19 10:33:06 -04:00
parent 31fbe5baff
commit a76f4036b3
15 changed files with 766 additions and 585 deletions

View File

@@ -12,6 +12,7 @@
<% end %>
<% @round = @round + 1 %>
<% end %>
<th>Placement</th>
</tr>
</thead>
<tbody>
@@ -25,6 +26,7 @@
<% end %>
<% @round = @round + 1 %>
<% end %>
<td><%= w.pool_placement %><br><%= w.pool_placement_tiebreaker %></td>
</tr>
<% end %>

View File

@@ -24,14 +24,14 @@
<tr>
<td><%= link_to "#{tournament.name}", tournament %></td>
<td><%= tournament.date %></td>
<td>
<% if can? :manage, tournament %>
<td>
<%= link_to '', edit_tournament_path(tournament), :class=>"fas fa-edit" %>
<% if can? :destroy, tournament %>
<%= link_to '', tournament, method: :delete, data: { confirm: "Are you sure you want to delete #{tournament.name}?" }, :class=>"fas fa-trash-alt" %>
<% end %>
</td>
<% end %>
</td>
</tr>
<% end %>
</tbody>