summaryrefslogtreecommitdiff
path: root/lib/sampling/manual.html.erb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-28 19:39:36 -0400
committernfoy <nfoy@purdue.edu>2014-04-28 19:39:36 -0400
commit87530c5bca7062ed18badf98bcb4b63529607ecd (patch)
tree29f2da66af99fbf05726ae9f4fa4bd78d910a763 /lib/sampling/manual.html.erb
parent3a4412f08bed438ebf14f6cdfa5bb6eb4d239138 (diff)
parent8dade78c49ad03085166c41d8b334a6ade3a287e (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/sampling/manual.html.erb')
-rw-r--r--lib/sampling/manual.html.erb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/sampling/manual.html.erb b/lib/sampling/manual.html.erb
index cf873b4..7b71c29 100644
--- a/lib/sampling/manual.html.erb
+++ b/lib/sampling/manual.html.erb
@@ -1 +1,11 @@
-<!-- TODO -->
+<% if @tournament.hosts.include? @current_user %>
+ <input type="hidden" name="update_action" value="finish" >
+ <% @match.teams.each do |team| %>
+ <input type="radio", name="winner", value="<%= team.id %>" >
+ <%= "Team #{team.id} Won" %>
+ <% 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 %> \ No newline at end of file