New challenge

<%= form_for @challenge do |f| %> <%= f.error_messages %> <%= f.hidden_field :contester1_id %> <%= f.hidden_field :contester2_id %>
<% if @challenge.errors.empty? %>

<%= namelink @challenge.contester1.team %> vs <%= namelink @challenge.contester2.team %>

<%= f.label :details, "Information for the opponent" %>
<%= f.text_area :details, :cols => 40, :rows => 7 %>

<%= f.submit 'Create' %>

<% end %>
<% end %>
<%= link_to 'Back', @challenge.contester1.contest %>