Info

Address: <%= @tournament.address %>

Director: <%= @tournament.director %>

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

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



School Lineups


<% if can? :manage, @tournament %><% end %> <% @schools.each do |school| %> <% end %> <% end %>
Name<%= link_to " New School" , "/schools/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<%= link_to "#{school.name}", school %> <% if can? :manage, school %> <%= link_to '', edit_school_path(school), :class=>"fas fa-edit" %> <% if can? :manage, @tournament %> <%= link_to '', school, method: :delete, data: { confirm: "Are you sure you want to delete #{school.name}?" }, :class=>"fas fa-trash-alt" %> <% end %>


Weight Class Seeds


<% if can? :manage, @tournament %><% end %> <% @weights.each do |weight| %> <% if can? :manage, @tournament %> <% end %> <% end %>
Weight Class Bracket Size<%= link_to " New Weight Class" , "/weights/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<%= link_to "#{weight.max} lbs", weight %> <%= weight.bracket_size %> <%= link_to '', edit_weight_path(weight), :class=>"fas fa-edit" %> <%= link_to '', weight, method: :delete, data: { confirm: "Are you sure you want to delete the #{weight.max} weight class?" }, :class=>"fas fa-trash-alt" %>
<% if can? :manage, @tournament %>

Mats


<% @mats.each do |mat| %> <% if can? :manage, @tournament %> <% end %> <% end %>
Name <%= link_to " New Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<%= link_to "Mat #{mat.name}", mat %> <%= link_to '', mat, method: :delete, data: { confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %>
<% end %>
<%= render 'import_form' %>