Referee Admin

<%= namelink @match.contester1.team if @match.contester1 %>

VS

<%= namelink @match.contester2.team if @match.contester2 %>

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

Lineups

<%= form_for @match do |f| %> <%= f.error_messages %>
<% [@match.contester1].each do |contester| %> <%= render partial: "lineup", locals: { contester: contester } %> <% end %>
<% [@match.contester2].each do |contester| %> <%= render partial: "lineup", locals: { contester: contester } %> <% end %>
<%= f.submit 'Save Lineups' %>
<% end %>
<%= form_for @match, html: { class: 'square' } do |f| %> <%= f.error_messages %>

Scoring

<%= f.label :server_id %> <%= f.select :server_id, Server.active.collect { |d| ["#{d.name}", d.id] }, { include_blank: true } %>
<%= f.label :forfeit %> <%= f.check_box :forfeit %> <%= f.label :forfeit, class: 'checkbox' %>
<%= f.label "Scores" %>
<%= 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 } %>
<%= f.label 'Player of the match' %> <%= f.text_field :motm_name, { value: User.get(@match.motm_id) } %>
<%= f.submit 'Save Scoring' %>
<% end %>
<%= form_for @match do |f| %> <%= f.error_messages %>

Match Report

<%= f.text_area :report %>
<%= f.submit 'Save Report' %>
<% end %>