blob: c9dd2fe45467cbb2bf4e10fc8435dd82044ceb61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<% if @tournament.hosts.include? current_user %>
<input type="hidden" name="update_action" value="finish">
<% @match.teams.each do |team| %>
<%= tag :input, {"type" => "radio", "name" => "winner", "value" => "#{team.id}" } %>
<%= "Team #{team.id} Won" %>
<% end %>
<%= submit_tag("Finish match") %>
<%= @tournament.settings['ScoringMethod'] %>
<% else %>
<p>The match is running; the host has yet to post the scores of the match.</p>
<% end %>
|