Lineups
<%= form_for @match do |f| %>
<%= f.error_messages %>
<%= f.submit 'Save Lineup' %>
<% [@match.contester1].each do |contester| %>
<%= render partial: "lineup", locals: { contester: contester } %>
<% end %>
<% end %>
<%= form_for @match do |f| %>
<%= f.error_messages %>
<%= f.submit 'Save Lineup' %>
<% [@match.contester2].each do |contester| %>
<%= render partial: "lineup", locals: { contester: contester } %>
<% end %>
<% 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 Scores' %>
<% end %>
<%= form_for @match do |f| %>
<%= f.error_messages %>
Match Report
<%= f.text_area :report %>
<%= f.submit 'Save Report' %>
<% end %>