summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:11 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:11 -0400
commit6c615c4eaa973d83778fc6d34157f823880765f1 (patch)
tree112cae9c020e34fdbd3620eea13b3c931e24e71c /app/views/tournaments/new.html.erb
parent353e0b387b8e76d407f9451c236efbb4bd3a19ef (diff)
Work on the tournament creation page
Diffstat (limited to 'app/views/tournaments/new.html.erb')
-rw-r--r--app/views/tournaments/new.html.erb19
1 files changed, 1 insertions, 18 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
index af74ea8..9c741e0 100644
--- a/app/views/tournaments/new.html.erb
+++ b/app/views/tournaments/new.html.erb
@@ -1,22 +1,5 @@
<h1>New Tournament</h1>
-<%= form_tag(new_tournament_path, method: "get") do %>
- <%= select_tag('tournament[game_id]',
- options_from_collection_for_select(@games, 'id', 'name', @tournament.game.nil? || @tournament.game.id),
- :prompt => "Select a Game Type") %>
- <%= submit_tag("Select", :class => "btn") %>
-<% end %>
-
-<div id='ajax-form'>
- <% if not @tournament.game.nil? %>
- <%= render 'selected' %>
- <% end %>
-</div>
-
-<div id='ajax-form'>
- <% if not @tournament.game.nil? %>
- <%= render 'stages' %>
- <% end %>
-</div>
+<%= render 'form' %>
<%= link_to 'Back', tournaments_path %>