1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 06:07:20 +00:00

All links with a confirm now use turbo

This commit is contained in:
2025-11-11 21:09:24 -05:00
parent f73e9bfc4e
commit 793a9e3ecc
11 changed files with 25 additions and 26 deletions

View File

@@ -35,7 +35,7 @@
<% end %></td>
<% if can? :manage, @tournament %>
<td>
<%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}? THIS WILL DELETE ALL MATCHES." } , :class=>"fas fa-trash-alt" %>
<%= link_to '', wrestler, data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete #{wrestler.name}? THIS WILL DELETE ALL MATCHES." } , :class=>"fas fa-trash-alt" %>
</td>
<% end %>
</tr>
@@ -81,4 +81,4 @@
</ul>
</li>
</div>
<% end %>
<% end %>