mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-21 06:22:00 +00:00
Make bracket page prettier for directors
This commit is contained in:
@@ -91,8 +91,11 @@ li:first-child,li:last-child {
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if can? :manage, @tournament %>
|
<% if can? :manage, @tournament %>
|
||||||
<br><br>
|
<h3>Tournament Director Bracket Actions</h3>
|
||||||
<h3>Swap Bracket Position</h3>
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>Swap Bracket Position</strong>
|
||||||
<%= form_for(Wrestler.new, url: swap_wrestlers_path(@tournament)) do |f| %>
|
<%= form_for(Wrestler.new, url: swap_wrestlers_path(@tournament)) do |f| %>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<%= f.label 'Wrestler 1' %><br>
|
<%= f.label 'Wrestler 1' %><br>
|
||||||
@@ -105,8 +108,9 @@ li:first-child,li:last-child {
|
|||||||
<br>
|
<br>
|
||||||
<%= submit_tag "Swap", :class=>"btn btn-success"%>
|
<%= submit_tag "Swap", :class=>"btn btn-success"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<br><br>
|
</td>
|
||||||
<h3>Move wrestler to pool with a bye</h3>
|
<td>
|
||||||
|
<strong>Move wrestler to pool with a bye</strong>
|
||||||
<%= form_tag '/wrestlers/update_pool' do %>
|
<%= form_tag '/wrestlers/update_pool' do %>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<%= label_tag 'Wrestler to move' %><br>
|
<%= label_tag 'Wrestler to move' %><br>
|
||||||
@@ -119,15 +123,19 @@ li:first-child,li:last-child {
|
|||||||
<br>
|
<br>
|
||||||
<%= submit_tag "Move", :class=>"btn btn-success"%>
|
<%= submit_tag "Move", :class=>"btn btn-success"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<br><br>
|
</td>
|
||||||
<h3>Rerun getting pool order</h3>
|
<td>
|
||||||
|
<strong>Rerun getting pool placement</strong>
|
||||||
<p>If you changed the result of a match that changes the ranking of a pool.</p>
|
<p>If you changed the result of a match that changes the ranking of a pool.</p>
|
||||||
<%= form_tag "/weights/#{@weight.id}/pool_order", :method => :post do %>
|
<%= form_tag "/weights/#{@weight.id}/pool_order", :method => :post do %>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<%= label_tag 'Pool to order' %><br>
|
<%= label_tag 'Pool to place' %><br>
|
||||||
<%= select_tag :pool_to_order, options_for_select((1..@weight.pools).step(1).to_a) %>
|
<%= select_tag :pool_to_order, options_for_select((1..@weight.pools).step(1).to_a) %>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<%= submit_tag "Get Pool Order", :class=>"btn btn-success"%>
|
<%= submit_tag "Get Pool Placement", :class=>"btn btn-success"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
Reference in New Issue
Block a user