From 1e2db1933382a6cbba210c6d69f9497717da03ae Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sun, 27 Apr 2014 13:51:37 -0400 Subject: Made local form area submit buttons. --- app/views/tournaments/_form.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/views/tournaments/_form.html.erb') diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index b8d6fc1..33ce746 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -7,10 +7,10 @@

<%= f.label :game_id, "Select a game type" %> <%= f.select(:game_id, Game.all.map{|game| [game.name, game.id]}) %> + <%= submit_tag("Select", :class => "btn") %>

<% if @tournament.game.nil? %> - <%= submit_tag("Select", :class => "btn") %> <% else %> @@ -84,6 +84,8 @@
Stages + <%= submit_tag("Set Stages", :class => "btn") %> + <% for i in 1..(params[:num_stages].to_i) do %> <%= fields_for "tournament[stages][#{i}]", @tournament.stages[i] do |stage_fields| %>
Stage <%= i %> -- cgit v1.2.3