1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-20 20:17:45 +00:00

Added 16 man modified double elimination bracket type. Still need to fix swap wrestlers code.

This commit is contained in:
2020-01-23 07:46:23 -05:00
parent 314124107c
commit ff102a1862
18 changed files with 744 additions and 265 deletions

View File

@@ -0,0 +1,22 @@
<% if can? :manage, @tournament %>
<h3>Tournament Director Bracket Actions</h3>
<table class="table">
<tr>
<td>
<strong>Swap Bracket Position</strong>
<%= form_for(Wrestler.new, url: swap_wrestlers_path(@tournament)) do |f| %>
<div class="field">
<%= f.label 'Wrestler 1' %><br>
<%= f.collection_select :originalId, @weight.wrestlers, :id, :name %>
</div>
<div class="field">
<%= f.label 'Wrestler 2' %><br>
<%= f.collection_select :swapId, @weight.wrestlers, :id, :name %>
</div>
<br>
<%= submit_tag "Swap", :class=>"btn btn-success"%>
<% end %>
</td>
</tr>
</table>
<% end %>