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