From 96dd3fbe302eec54b34678e098d3b59710b09b5f Mon Sep 17 00:00:00 2001 From: tkimia Date: Sat, 26 Apr 2014 19:16:19 -0400 Subject: prelim bracket control --- app/views/common/_show_tournament.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/views/common') diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index 0f60fad..fb31420 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -29,6 +29,13 @@ <% else %>

You've signed up for this tournament!

<% end %> + <%= form_tag(tournament_brackets_path(target), method: "post") do %> + <%= label :user_id, nil, style: "display: none;" %> + <%= text_field_tag :user_id, current_user.id, style: "display: none;" %> + <%= label :tournament_id, nil, style: "display: none;" %> + <%= text_field_tag :tournament_id, target.id, style: "display: none;" %> + <%= submit_tag("Make Bracket") %> + <% end %> <% end %> \ No newline at end of file -- cgit v1.2.3-2-g168b From 93e291c8e5002fdea906bb8c96cd528fa8b75935 Mon Sep 17 00:00:00 2001 From: tkimia Date: Sat, 26 Apr 2014 19:39:57 -0400 Subject: brackets just get created --- app/views/common/_show_tournament.html.erb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/views/common') diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index fb31420..b16a37b 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -30,10 +30,6 @@

You've signed up for this tournament!

<% end %> <%= form_tag(tournament_brackets_path(target), method: "post") do %> - <%= label :user_id, nil, style: "display: none;" %> - <%= text_field_tag :user_id, current_user.id, style: "display: none;" %> - <%= label :tournament_id, nil, style: "display: none;" %> - <%= text_field_tag :tournament_id, target.id, style: "display: none;" %> <%= submit_tag("Make Bracket") %> <% end %> <% end %> -- cgit v1.2.3-2-g168b