1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Ask table worker the name of the winner in the popup

This commit is contained in:
2015-12-16 13:06:14 +00:00
parent e2966c0456
commit 2213cf03b4

View File

@@ -35,6 +35,7 @@
<br>
<div class="actions">
<%= f.submit data: { confirm: "Did you confirm the winner before submitting? If not, please hit cancel."}, :class=>"btn btn-success" %>
<%= f.submit onclick: "return confirm('Is the name of the winner ' + document.getElementById('match_winner_id').options[document.getElementById('match_winner_id').selectedIndex].text + '?')", :class=>"btn btn-success" %>
</div>
<% end %>