Editing: <%= h @contester.team.name %>

<%= h @contester.contest.name %>

<%= form_for @contester, html: { class: 'square' } do |f| %> <%= render 'shared/errors', messages: @contester.errors.full_messages %> <% if @contester.contest.contest_type == Contest::TYPE_LADDER %>
<%= f.label :rank %> <%= f.text_field :score %>
<% else %>
<%= f.label :extra, "Extra Points" %> <%= f.text_field :extra %>
<%= f.label :score %> <%= f.text_field :score %>
<% end %>
<%= f.label :win %> <%= f.text_field :win %>
<%= f.label :loss %> <%= f.text_field :loss %>
<%= f.label :draw %> <%= f.text_field :draw %>
<%= f.submit 'Update' %>
<% end %>