mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
Fixed create new backup link syntax for turbo_method and made the assign_next_match button a turbo_method
This commit is contained in:
@@ -8,7 +8,7 @@ and will also delete all of your current data. It's best to use the create backu
|
||||
<tr>
|
||||
<th>Backup Created At</th>
|
||||
<th>Backup Reason</th>
|
||||
<th><%= link_to ' Create New Backup', tournament_tournament_backups_path(@tournament), turbo_method: :post, class: 'fas fa-plus'%></th>
|
||||
<th><%= link_to ' Create New Backup', tournament_tournament_backups_path(@tournament), data: { turbo_method: :post }, class: 'fas fa-plus'%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
<% if can? :manage, @tournament %>
|
||||
<td>
|
||||
<%= link_to '', mat, data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %>
|
||||
<%= link_to '', "/mats/#{mat.id}/assign_next_match", method: :post, :class=>"fas fa-solid fa-arrow-right" %>
|
||||
<%= link_to '', "/mats/#{mat.id}/assign_next_match", data: { turbo_method: :post }, :class=>"fas fa-solid fa-arrow-right" %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user