Address: <%= @tournament.address %>
Director: <%= @tournament.director %>
Director email: <%= @tournament.director_email %>
Tournament Type: <%= @tournament.tournament_type %>
| Name | <% if can? :manage, @tournament %><%= link_to " New School" , "/schools/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %> | <% end %>
|---|---|
| <%= 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 %> | <% end %>
| Weight Class | Bracket Size | <% if can? :manage, @tournament %><%= link_to " New Weight Class" , "/weights/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %> | <% end %>
|---|---|---|
| <%= link_to "#{weight.max} lbs", weight %> | <%= weight.bracket_size %> | <% if can? :manage, @tournament %><%= 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" %> | <% end %>
| Name | <%= link_to " New Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %> |
|---|---|
| <%= link_to "Mat #{mat.name}", mat %> | <% if can? :manage, @tournament %><%= link_to '', mat, method: :delete, data: { confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %> | <% end %>