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:
22
app/views/tournaments/_bracket_director_actions.html.erb
Normal file
22
app/views/tournaments/_bracket_director_actions.html.erb
Normal 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 %>
|
||||
Reference in New Issue
Block a user