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

<%= render :partial => "javascripts/mce_full" %>

Lineup

<%= form_for @match do |f| %> <%= f.error_messages %> <% [@match.contester1].each do |contester| %> <%= render :partial => "lineup", :locals => {:contester => contester} %> <% end %>

<%= f.submit "Save" %>

<% end %>
<%= form_for @match do |f| %> <%= f.error_messages %> <% [@match.contester2].each do |contester| %> <%= render :partial => "lineup", :locals => {:contester => contester} %> <% end %>

<%= f.submit "Save" %>

<% end %>

<%= form_for @match do |f| %> <%= f.error_messages %>

Scoring and options

<%= f.label :server_id %> <%= f.select :server_id, Server.hlds.active.collect{|d| ["#{d.name}", d.id]}, {:include_blank => true} %>

<%= f.label :forfeit %> <%= f.check_box :forfeit %>

Score: <%= f.text_field :score1, :size => 1 %> <%= f.text_field :score2, :size => 2 %>

<%= f.label :demo %>: <%= f.select :demo_id, DataFile.ordered.collect{|d| ["#{d.name}", d.id]}, {:include_blank => true} %>

<%= link_to_function 'Man of the match', "findUser('motm')" %>: <%= f.text_field :motm_name, {:value => User.get(@match.motm_id)} %>

<%= f.submit "Save" %>

<% end %>
<%= form_for @match do |f| %> <%= f.error_messages %>

Report

<%= f.text_area :report, :rows => 20, :cols => 60 %>

<%= f.submit "Save" %>

<% end %>
<%= link_to "Back", @match %>