summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
blob: a6dfa4d92eb192344e6e335a0ae6801d25fae57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()' %> <%= link_to 'Select', 'new?game=1', :class => "btn btn-warning btn-lg" %>



<br />
<div id='ajax-form'>
	<% 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 %>