Fix delete link, remove obsolete notice
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Basti 2022-02-21 11:19:07 -06:00
parent 86cdb1202b
commit 2b00eebb73
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,8 @@
<td><%= donation.paid_at ? donation.paid_at.strftime("%Y-%m-%d") : "" %></td>
<td><%= link_to 'Show', admin_donation_path(donation), class: 'btn btn-sm btn-gray' %></td>
<td><%= link_to 'Edit', edit_admin_donation_path(donation), class: 'btn btn-sm btn-gray' %></td>
<td><%= link_to 'Destroy', admin_donation_path(donation), class: 'btn btn-sm btn-red', method: :delete, data: { confirm: 'Are you sure?' } %></td>
<td><%= link_to 'Destroy', admin_donation_path(donation), class: 'btn btn-sm btn-red',
data: { turbo_method: :delete, confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>

View File

@ -1,8 +1,6 @@
<%= render HeaderComponent.new(title: "Donations") %>
<%= render MainSimpleComponent.new do %>
<p id="notice"><%= notice %></p>
<p>
<strong>User:</strong>
<%= @donation.user.address %>