summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
blob: 283770886fa7117a710d4e64542af6e4f1e6d980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<h1>New Tournament</h1>

<%= form_tag(new_tournament_path, method: "get") do %>
	<%= select_tag('tournament[game_id]',
	                options_from_collection_for_select(@games, 'id', 'name', @tournament.game.nil? || @tournament.game.id),
	                :prompt => "Select a Game Type") %>
	<%= submit_tag("Select", :class => "btn") %>
<% end %>

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

<%= link_to 'Back', tournaments_path %>