<%= notice %>

<% if user_signed_in? %> <%= link_to "Edit #{@tournament.name}", edit_tournament_path(@tournament), :class=>"btn btn-primary" %> | <% end %> <%= link_to 'Back', root_path, :class=>"btn btn-default" %>

<%= @tournament.name %>

Address: <%= @tournament.address %>

Director: <%= @tournament.director %>

Director email: <%= @tournament.director_email %>

Tournament Type: <%= @tournament.tournament_type %>


<% if user_signed_in? %> <%= link_to "Generate Pool Matches" , "/static_pages/generate_matches?tournament=#{@tournament.id}", data: { confirm: 'Are you sure? This will delete all current matches.' }, :class=>"btn btn-success" %>

<%= link_to "Weigh In Page" , "/static_pages/weigh_in?tournament=#{@tournament.id}", :class=>"btn btn-primary" %>

<% end %>

School Lineups


<% if user_signed_in? %> <%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}", :class=>"btn btn-success" %>

<% end %> <% @schools.each do |school| %> <% end %>
Name
<%= school.name %> <%= link_to 'Show', school, :class=>"btn btn-default" %> <% if user_signed_in? %> <%= link_to 'Edit', edit_school_path(school), :class=>"btn btn-primary" %> <%= link_to 'Destroy', school, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %> <% end %>


Weight Class Seeds


<% if user_signed_in? %> <%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}", :class=>"btn btn-success" %>

<%= 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" %>

<% end %> <% @weights.each do |weight| %> <% end %>
Weight Class Bracket Size
<%= weight.max %> <%= weight.bracket_size %> <%= link_to 'Show', weight, :class=>"btn btn-default" %> <% if user_signed_in? %> <%= link_to 'Edit', edit_weight_path(weight), :class=>"btn btn-primary" %> <%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %> <% end %>
<% if user_signed_in? %>

Mats


<%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"btn btn-success" %>

<% @mats.each do |mat| %> <% end %>
Name
<%= mat.name %> <% if user_signed_in? %> <%= link_to 'Destroy', mat, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %> <% end %>
<% end %>