diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-03-04 18:57:50 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-03-04 18:57:50 -0500 |
commit | e586c3e2b30698ea5a1c83c19ea446c4be89fd54 (patch) | |
tree | 749a343dbcd93f461930e8c6ff11ebb41f2af8da /app/views/tournaments/new.html.erb | |
parent | 4cdd4e361ad691d524f9ee6163b40ef78d9938c4 (diff) |
Here's to messing everything up.
Diffstat (limited to 'app/views/tournaments/new.html.erb')
-rw-r--r-- | app/views/tournaments/new.html.erb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb index f1dec90..a6dfa4d 100644 --- a/app/views/tournaments/new.html.erb +++ b/app/views/tournaments/new.html.erb @@ -1,11 +1,19 @@ +<%= javascript_include_tag :defaults %> + <h1>New tournament</h1> -<%= select_tag 'tournament_id', options_for_select(["Select a Game Type"] + Game.all.collect {|game| game.name}), :onchange => 'populate()' %> +<%= 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-warning btn-lg" %> + + <br /> <div id='ajax-form'> - <% render :partial => "selected" %> + <% if not @game.nil? %> + <%= render 'selected' %> + <% end %> </div> <br /><br /> +<%= link_to 'Select', 'selected', :class => "btn btn-warning btn-lg" %> + <%= link_to 'Back', tournaments_path %> |