summaryrefslogtreecommitdiff
path: root/app/views/common/_show_tournament.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/common/_show_tournament.html.erb')
-rw-r--r--app/views/common/_show_tournament.html.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb
index f4d02ec..c0237b1 100644
--- a/app/views/common/_show_tournament.html.erb
+++ b/app/views/common/_show_tournament.html.erb
@@ -38,6 +38,11 @@
<%= form_tag(tournament_brackets_path(target), method: "post") do %>
<%= submit_tag("Make Bracket") %>
<% end %>
+ <% elsif @user_bracket && target.status == 4 %>
+ <%= form_tag(tournament_bracket_path(@tournament, @bracket), method: 'put') do %>
+ <input type="hidden" name="update_action" value="results">
+ <%= submit_tag("Bracket Results") %>
+ <% end %>
<% end %>
<% end %>
</div>