summaryrefslogtreecommitdiff
path: root/app/views/tournaments
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-03 12:02:22 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-03-03 12:02:22 -0500
commit06ff58091d4710d485d5944b3b4eed362715d8ff (patch)
treed837eb2e9268d13cfeb4dbb33c417f6683437349 /app/views/tournaments
parentd220b5f8e86d1c8b4503948c09f2497d11710d98 (diff)
Oops, also forgot this one.
Diffstat (limited to 'app/views/tournaments')
-rw-r--r--app/views/tournaments/new.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
new file mode 100644
index 0000000..b168b1b
--- /dev/null
+++ b/app/views/tournaments/new.html.erb
@@ -0,0 +1,12 @@
+<h1>New tournament</h1>
+
+<%= select_tag 'tournament_id', options_for_select([] + Game.all.collect {|game| game.name}), :onchange => 'populate()' %>
+
+<br />
+<div id='ajax-form'>
+</div>
+<br /><br />
+<p id=jumbo-buttons>
+<%= link_to 'Create Tournament', create, :class => btn btn-warning btn-lg, :role => submit %>
+
+<%= link_to 'Back', tournaments_path %>