From 2213cf03b48f1ca54d3d9adaa02f6e57abd5694f Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 16 Dec 2015 13:06:14 +0000 Subject: [PATCH] Ask table worker the name of the winner in the popup --- app/views/mats/_match_edit_form.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/mats/_match_edit_form.html.erb b/app/views/mats/_match_edit_form.html.erb index 82ad91f..dfdb621 100644 --- a/app/views/mats/_match_edit_form.html.erb +++ b/app/views/mats/_match_edit_form.html.erb @@ -35,6 +35,7 @@
- <%= 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" %> +
<% end %>