1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-01 12:15:25 +00:00

Trying to make sidebar look better and make it harder to accidentally mess up a tournament in progress

This commit is contained in:
2015-12-29 15:44:45 +00:00
parent 50641edce3
commit 106291fbaf

View File

@@ -4,8 +4,9 @@
<!-- sidebar -->
<% if @tournament %>
<div class="" style="padding-right: 1%;">
<h4>Tournament Links</h4>
<ul class="">
<h4>Tournament Links</h4>
<li><%= link_to "Brackets" , "/tournaments/#{@tournament.id}/brackets" %></li>
<li><%= link_to "Upcoming Matches" , "/tournaments/#{@tournament.id}/up_matches" %></li>
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
@@ -14,12 +15,17 @@
<% if tournament_permissions(@tournament) %>
<br><br>
<div class="" style="padding-right: 1%;">
<ul class="">
<h4>Tournament Director Links</h4>
<li><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %></li>
<li><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %></li>
<li><%= link_to "Create High School Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' } %></li>
</ul>
<br><strong>Pages</strong><br>
<br><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in", class: "btn btn-primary btn-sm" %>
<br><br><strong>Time Savers</strong><br>
<br><%= link_to "Create High School Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' }, class: "btn btn-success btn-sm" %>
<br><br><strong>Tournament Actions</strong><br>
<br><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' }, class: "btn btn-success btn-sm" %>
</div>
<% end %>
<% end %>