mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-22 22:37:01 +00:00
Moved static pages actions to tournament where it made sense
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<% if tournament_permissions(@tournament) %>
|
||||
<%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' }, :class=>"btn btn-success" %>
|
||||
<br><br>
|
||||
<%= link_to "Weigh In Page" , "/static_pages/weigh_in?tournament=#{@tournament.id}", :class=>"btn btn-primary" %>
|
||||
<%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in", :class=>"btn btn-primary" %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
@@ -77,7 +77,7 @@
|
||||
<% if tournament_permissions(@tournament) %>
|
||||
<%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}", :class=>"btn btn-success" %>
|
||||
<br><br>
|
||||
<%= link_to "Create HS Weights" , "/static_pages/createCustomWeights?tournament=#{@tournament.id}&customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' }, :class=>"btn btn-success" %>
|
||||
<%= link_to "Create HS Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' }, :class=>"btn btn-success" %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user