<%= link_to "Back to #{@tournament_name}", "/tournaments/#{@tournament_id}", :class=>"btn btn-default" %>

<% if @tournament %> <% @weights.each do |weight| %> <%= link_to "#{weight.max}" , "/static_pages/weigh_in?weight=#{weight.id}" %>
<% end %>
<% if user_signed_in? %> <%= form_for(@tournament) do |f| %>
<%= f.label :weigh_in_ref %>
<%= f.text_field :weigh_in_ref %>

<%= f.submit 'Submit', :class=>"btn btn-success" %> <% end %> <% end %> <% end %> <% if @weight %> <%= link_to "Back to weigh in weights","/static_pages/weigh_in?tournament=#{@tournament_id}", :class=>"btn btn-default" %>

<%= form_tag @wrestlers_update_path do %> <% @wrestlers.order("original_seed asc").each do |wrestler| %> <% if wrestler.weight_id == @weight.id %> <% end %> <% end %>
Name School Seed Weight Class Offical Weight
<%= wrestler.name %> <%= School.find(wrestler.school_id).name %> <%= wrestler.original_seed %> <%= wrestler.weight.max %> <% if user_signed_in? %> <%= fields_for "wrestler[]", wrestler do |w| %> <%= w.number_field :offical_weight, :step => 'any' %> <% end %> <% else %> <%= wrestler.offical_weight %> <% end %>
<%= hidden_field_tag :tournament, @tournament_id %> <% if user_signed_in? %> <%= submit_tag "Save", :class=>"btn btn-success"%> <% end %> <% end %> <% end %>