diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 19:04:36 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 19:04:36 -0500 |
commit | 6db29eb669a85e5b0aac7a1e8879781a1cb77772 (patch) | |
tree | 26114b3a2385a839220ef3e59dac65b561ca3793 /app/views/tournaments/new.html.erb | |
parent | 40e0c9cf507dc27c9553af5ca962e3c65dc42780 (diff) | |
parent | e1d73b277cbc55615d10dbb842480f970ae5a538 (diff) |
Merge branch 'master' of github.com:LukeShu/leager
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 %> |