mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
15 lines
656 B
Plaintext
15 lines
656 B
Plaintext
<h1>Change Wrestlers for Match <%= @match.bout_number %></h1>
|
|
<%= form_for(@match) do |f| %>
|
|
<div class="field">
|
|
<%= f.label "Wrestler 1" %><br>
|
|
<%= f.collection_select :w1, @wrestlers, :id, :name, include_blank: true %>
|
|
</div>
|
|
<div>vs</div>
|
|
<div class="field">
|
|
<%= f.label "Wrestler 2" %><br>
|
|
<%= f.collection_select :w2, @wrestlers, :id, :name, include_blank: true %>
|
|
</div>
|
|
<div class="actions">
|
|
<%= 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 %> |