diff --git a/app/views/tournaments/_pool_bracket_director_actions.html.erb b/app/views/tournaments/_pool_bracket_director_actions.html.erb new file mode 100644 index 0000000..010d57a --- /dev/null +++ b/app/views/tournaments/_pool_bracket_director_actions.html.erb @@ -0,0 +1,49 @@ +<% if can? :manage, @tournament %> +
|
+ Swap Bracket Position
+ <%= form_for(Wrestler.new, url: swap_wrestlers_path(@tournament)) do |f| %>
+
+ <%= f.label 'Wrestler 1' %>
+ + <%= f.collection_select :originalId, @weight.wrestlers, :id, :name %> +
+ <%= f.label 'Wrestler 2' %>
+ + <%= f.collection_select :swapId, @weight.wrestlers, :id, :name %> + + <%= submit_tag "Swap", :class=>"btn btn-success"%> + <% end %> + |
+
+ Move wrestler to pool with a bye
+ <%= form_tag '/wrestlers/update_pool' do %>
+
+ <%= label_tag 'Wrestler to move' %>
+ + <%= collection_select(:wrestler, :id, @weight.wrestlers, :id, :name) %> +
+ <%= label_tag 'Pool to move to' %>
+ + <%= select :wrestler, :pool, @weight.pools_with_bye %> + + <%= submit_tag "Move", :class=>"btn btn-success"%> + <% end %> + |
+
+ Rerun getting pool placement
+ If you changed the result of a match that changes the ranking of a pool. + <%= form_tag "/weights/#{@weight.id}/pool_order", :method => :post do %> +
+ <%= label_tag 'Pool to place' %>
+ + <%= select_tag :pool_to_order, options_for_select((1..@weight.pools).step(1).to_a) %> + + <%= submit_tag "Get Pool Placement", :class=>"btn btn-success"%> + <% end %> + |
+
|
- Swap Bracket Position
- <%= form_for(Wrestler.new, url: swap_wrestlers_path(@tournament)) do |f| %>
-
- <%= f.label 'Wrestler 1' %>
- - <%= f.collection_select :originalId, @weight.wrestlers, :id, :name %> -
- <%= f.label 'Wrestler 2' %>
- - <%= f.collection_select :swapId, @weight.wrestlers, :id, :name %> - - <%= submit_tag "Swap", :class=>"btn btn-success"%> - <% end %> - |
-
- Move wrestler to pool with a bye
- <%= form_tag '/wrestlers/update_pool' do %>
-
- <%= label_tag 'Wrestler to move' %>
- - <%= collection_select(:wrestler, :id, @weight.wrestlers, :id, :name) %> -
- <%= label_tag 'Pool to move to' %>
- - <%= select :wrestler, :pool, @weight.pools_with_bye %> - - <%= submit_tag "Move", :class=>"btn btn-success"%> - <% end %> - |
-
- Rerun getting pool placement
- If you changed the result of a match that changes the ranking of a pool. - <%= form_tag "/weights/#{@weight.id}/pool_order", :method => :post do %> -
- <%= label_tag 'Pool to place' %>
- - <%= select_tag :pool_to_order, options_for_select((1..@weight.pools).step(1).to_a) %> - - <%= submit_tag "Get Pool Placement", :class=>"btn btn-success"%> - <% end %> - |
-