<%= notice %>

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

<%= @tournament.name %>

Address: <%= @tournament.address %>

Director: <%= @tournament.director %>

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



School Lineups

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


<% if user_signed_in? %> <%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}" %> <% end %>

Weight Class Seeds

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


<% if user_signed_in? %> <%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}" %>

<% @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 %>