
    <% @weights.each do |weight| %>
        <%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/weigh_in/#{weight.id}" %>
        <br>
    <% end %>
    <br>
    <% if can? :manage, @tournament %>
        <%= form_for(@tournament) do |f| %>
            <div class="field">
                <%= f.label :weigh_in_ref %><br>
                <%= f.text_field :weigh_in_ref %>
              </div>
              <br>
              <%= f.submit 'Submit', :class=>"btn btn-success" %>
        <% end %>
    <% end %>
    <br>
    <br>
    <%= link_to "Printable Weigh In Sheet" , "/tournaments/#{@tournament.id}/weigh_in_sheet?print=true", target: :_blank %>


