summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
blob: 428487ae165f88c8ca54b4ac294214096becb988 (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 %>