summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
blob: 3d6d1423527dcabb21a44c540277ca2cc0c5ff46 (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-success btn-xs" %>



<br />
<div id='ajax-form'>
	<% if not @game.nil? %>
		<%= render 'selected' %>
	<% end %>
</div>
<br /><br />

<%= link_to 'Select', 'selected', :class => "btn btn-success btn-xs" %>

<%= link_to 'Back', tournaments_path %>