summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-26 19:16:19 -0400
committertkimia <tkimia@purdue.edu>2014-04-26 19:16:19 -0400
commit96dd3fbe302eec54b34678e098d3b59710b09b5f (patch)
tree95138a74c0abe598d5f205f24067b6fd746b141b /app/views
parent10749a6242bec56586b71f4e8b886eddc9edc499 (diff)
prelim bracket control
Diffstat (limited to 'app/views')
-rw-r--r--app/views/brackets/new.html.erb4
-rw-r--r--app/views/common/_show_tournament.html.erb7
2 files changed, 8 insertions, 3 deletions
diff --git a/app/views/brackets/new.html.erb b/app/views/brackets/new.html.erb
index c379c15..91d0033 100644
--- a/app/views/brackets/new.html.erb
+++ b/app/views/brackets/new.html.erb
@@ -1,5 +1,3 @@
<h1>New bracket</h1>
-<%= render 'form' %>
-
-<%= link_to 'Back', brackets_path %>
+<%= link_to 'Back', tournament_brackets_path %>
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 %>
<p style="margin-top:10px;"> You've signed up for this tournament! </p>
<% 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 %>
</div>
</div> \ No newline at end of file