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

<%= link_to "Back to weigh ins","/tournaments/#{@tournament_id}/weigh_in", :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 tournament_permissions(@tournament) %> <%= submit_tag "Save", :class=>"btn btn-success"%> <% end %> <% end %>