mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-13 00:26:31 +00:00
Added functionality for a tournament director to move a wrestler to a pool that has a bye for greater flexibility
This commit is contained in:
@@ -103,4 +103,20 @@ li:first-child,li:last-child {
|
||||
<br>
|
||||
<%= submit_tag "Swap", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, @tournament %>
|
||||
<br><br>
|
||||
<h3>Move wrestler to pool with a bye</h3>
|
||||
<%= form_tag '/wrestlers/update_pool' do %>
|
||||
<div class="field">
|
||||
<%= label_tag 'Wrestler to move' %><br>
|
||||
<%= collection_select(:wrestler, :id, @weight.wrestlers, :id, :name) %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= label_tag 'Pool to move to' %><br>
|
||||
<%= select :wrestler, :pool, @weight.pools_with_bye %>
|
||||
</div>
|
||||
<br>
|
||||
<%= submit_tag "Move", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user