summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tournaments/new.html.erb')
-rw-r--r--app/views/tournaments/new.html.erb18
1 files changed, 16 insertions, 2 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
index 2a60539..3d6d142 100644
--- a/app/views/tournaments/new.html.erb
+++ b/app/views/tournaments/new.html.erb
@@ -1,5 +1,19 @@
-<h1>New tournament</h1>
+<%= javascript_include_tag :defaults %>
-<%= render 'form' %>
+<h1>New Tournament</h1>
+
+<%= select_tag 'tournament_id', options_for_select(["Select a Game Type"] + Game.all.collect {|game| game.name}), :onchange => 'populate()' %> <%= link_to 'Select', 'new?game=1', :class => "btn btn-success btn-xs" %>
+
+
+
+<br />
+<div id='ajax-form'>
+ <% if not @game.nil? %>
+ <%= render 'selected' %>
+ <% end %>
+</div>
+<br /><br />
+
+<%= link_to 'Select', 'selected', :class => "btn btn-success btn-xs" %>
<%= link_to 'Back', tournaments_path %>