mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
96 lines
No EOL
2.5 KiB
Text
Executable file
96 lines
No EOL
2.5 KiB
Text
Executable file
<div id="match">
|
|
<h1 class="fancy title">
|
|
<span>Referee Admin</span>
|
|
</h1>
|
|
|
|
<div class="contesters">
|
|
<h1 class="team-1"><%= namelink @match.contester1.team if @match.contester1 %></h1>
|
|
<div class="versus">
|
|
<span class="vs">VS</span>
|
|
</div>
|
|
<h1 class="team-2"><%= namelink @match.contester2.team if @match.contester2 %></h1>
|
|
</div>
|
|
|
|
<%= render partial: 'javascripts/mce_full' %>
|
|
|
|
<div class="lineups">
|
|
<h3>Lineups</h3>
|
|
|
|
<%= form_for @match do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<div class="team-1">
|
|
<% [@match.contester1].each do |contester| %>
|
|
<%= render partial: "lineup", locals: { contester: contester } %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="team-2">
|
|
<% [@match.contester2].each do |contester| %>
|
|
<%= render partial: "lineup", locals: { contester: contester } %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="controls">
|
|
<%= f.submit 'Save Lineups' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="scoring">
|
|
<%= form_for @match, html: { class: 'square' } do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<h3>Scoring</h3>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :server_id %>
|
|
<%= f.select :server_id, Server.active.collect { |d| ["#{d.name}", d.id] }, { include_blank: true } %>
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :forfeit %>
|
|
<%= f.check_box :forfeit %>
|
|
<%= f.label :forfeit, class: 'checkbox' %>
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label "Scores" %>
|
|
<div class="inputs scores">
|
|
<%= f.text_field :score1, size: 1 %>
|
|
<%= f.text_field :score2, size: 2 %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :demo %>
|
|
<div class="inputs">
|
|
<%= f.select :demo_id, DataFile.ordered.collect { |d| ["#{d.name}", d.id] }, { include_blank: true } %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label 'Player of the match' %>
|
|
<%= f.text_field :motm_name, { value: User.get(@match.motm_id) } %>
|
|
</div>
|
|
|
|
<div class="controls">
|
|
<%= f.submit 'Save Scoring' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="report">
|
|
<%= form_for @match do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<h3>Match Report</h3>
|
|
|
|
<%= f.text_area :report %>
|
|
|
|
<div class="controls">
|
|
<%= f.submit 'Save Report' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div> |