1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 13:43:48 +00:00

Updated seeding logic for double elim to make byes truly random and to keep bracket lines consistent through match generations

This commit is contained in:
2024-12-23 16:17:43 -05:00
parent 6242100e01
commit 7e6d7ddfbb
8 changed files with 213 additions and 55 deletions

View File

@@ -35,7 +35,7 @@
<% end %></td>
<% if can? :manage, @tournament %>
<td>
<%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}?" } , :class=>"fas fa-trash-alt" %>
<%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}? THIS WILL DELETE ALL MATCHES." } , :class=>"fas fa-trash-alt" %>
</td>
<% end %>
</tr>
@@ -43,7 +43,7 @@
<% end %>
</tbody>
</table>
<br><p>*All wrestlers without a seed (determined by tournament director) will be assigned a bracket line.</p>
<br><p>*All wrestlers without a seed (determined by tournament director) will be assigned a random bracket line.</p>
<% if can? :manage, @tournament %>
<br>
<%= submit_tag "Save Seeds", :class=>"btn btn-success"%>