diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/tournaments/new.html.erb | 12 |
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 %> |