1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-04 21:31:08 +00:00

Added an edit wrestlers page for matches

This commit is contained in:
2020-01-14 12:46:02 -05:00
parent e4329e3519
commit d4dedfb3bd
9 changed files with 298 additions and 235 deletions

View File

@@ -27,7 +27,10 @@
<td><%= match.w1_bracket_name %> vs <%= match.w2_bracket_name %></td>
<td><%= match.finished %></td>
<td><%= link_to 'Show', match, :class=>"btn btn-default btn-sm" %>
<%= link_to 'Edit', edit_match_path(match), :class=>"btn btn-primary btn-sm" %>
<%= link_to 'Edit Wrestlers', edit_match_path(match), :class=>"btn btn-primary btn-sm" %>
<% if match.w1 and match.w2 %>
<%= link_to 'Stat Match', "/matches/#{match.id}/stat", :class=>"btn btn-primary btn-sm" %>
<% end %>
</td>
</tr>
<% end %>